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)
|
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**
|
If we are just interested in the total of HTTP requests we have seen in **all**
|
||||||
applications, we could simply write:
|
applications, we could simply write:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue