mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08: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 a new issue