Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learn Grafana 7.0

You're reading from  Learn Grafana 7.0

Product type Book
Published in Jun 2020
Publisher Packt
ISBN-13 9781838826581
Pages 410 pages
Edition 1st Edition
Languages
Author (1):
Eric Salituro Eric Salituro
Profile icon Eric Salituro

Table of Contents (19) Chapters

Preface Getting Started with Grafana
Introduction to Data Visualization with Grafana A Tour of the Grafana Interface An Introduction to the Graph Panel Real-World Grafana
Connecting Grafana to a Data Source Visualizing Data in the Graph Panel Visualization Panels in Grafana Creating Your First Dashboard Working with Advanced Dashboard Features Grafana Alerting Exploring Logs with Grafana Loki Managing Grafana
Organizing Dashboards Managing Permissions for Users and Teams Authentication with External Services Cloud Monitoring Other Books You May Enjoy

Detecting trends with aggregations

As we continue up the stack, let's now take a look at 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:

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 a vague warning about something monotonically increasing. As we saw in the previous section, it's no problem to apply filters—say, to filter out the GET method handlers—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 actually tell Prometheus to apply an aggregation function (in this case, sum) after...

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}