Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learn Grafana 10.x - Second Edition

You're reading from  Learn Grafana 10.x - Second Edition

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781803231082
Pages 542 pages
Edition 2nd Edition
Languages
Author (1):
Eric Salituro Eric Salituro
Profile icon Eric Salituro

Table of Contents (23) Chapters

Preface Part 1 – Getting Started with Grafana
Chapter 1: Introducing Data Visualization with Grafana Chapter 2: Touring the Grafana Interface Chapter 3: Diving into Grafana's Time Series Visualization Part 2 – Real-World Grafana
Chapter 4: Connecting Grafana to a Prometheus Data Source Chapter 5: Extracting and Visualizing Data with InfluxDB and Grafana Chapter 6: Shaping Data with Grafana Transformations Chapter 7: Surveying Key Grafana Visualizations Chapter 8: Surveying Additional Grafana Visualizations Chapter 9: Creating Insightful Dashboards Chapter 10: Working with Advanced Dashboard Features and Elasticsearch Chapter 11: Streaming Real-Time IoT Data from Telegraf Agent to Grafana Live Chapter 12: Monitoring Data Streams with Grafana Alerts Chapter 13: Exploring Log Data with Grafana’s Loki Part 3 – Managing Grafana
Chapter 14: Organizing Dashboards and Folders Chapter 15: Managing Permissions for Users, Teams, and Organizations Chapter 16: Authenticating Grafana Logins Using LDAP or OAuth 2 Providers Chapter 17: Cloud Monitoring AWS, Azure, and GCP Index Other Books You May Enjoy

Detecting trends with aggregations

As we continue up the stack, let’s now examine some server performance metrics. How about an obvious web server metric? Enter prometheus_http_requests_total to get an idea of how many requests have been served so far:

Figure 4.15 – Prometheus HTTP requests

Figure 4.15 – Prometheus HTTP requests

Well, this is a bit of a mess. You can’t see all 22 of the time series—they’re all stacked on top of each other—and there’s the ominous warning Selected metric is a counter. As we saw in the previous section, it’s no problem to apply filters—say, to filter the 200 codes—but then we’d still have a stack of nearly 20 individual series.

Applying aggregations to our query data

If only there were some way to combine all the individual data series into one. It turns out there is, and it’s called an aggregation. We can tell Prometheus to apply an aggregation function (in this case, sum...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}