mirror of
https://github.com/prometheus/prometheus
synced 2025-03-11 07:59:57 +00:00
example to show the difference between "sum by" and "sum without" (#3558)
This commit is contained in:
parent
b4bd91958a
commit
08ee713c82
@ -218,6 +218,10 @@ number of seen HTTP requests per application and group over all instances via:
|
||||
|
||||
sum(http_requests_total) without (instance)
|
||||
|
||||
Which is equivalent to:
|
||||
|
||||
sum(http_requests_total) by (application, group)
|
||||
|
||||
If we are just interested in the total of HTTP requests we have seen in **all**
|
||||
applications, we could simply write:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user