mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-15 22:41:02 +01: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…
x
Reference in New Issue
Block a user