example to show the difference between "sum by" and "sum without" (#3558)

This commit is contained in:
Krasi Georgiev 2017-12-08 13:43:23 +00:00 committed by Brian Brazil
parent b4bd91958a
commit 08ee713c82
1 changed files with 4 additions and 0 deletions

View File

@ -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: