From 08ee713c82507b1a0d6a69a81031fc29c53281fe Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Fri, 8 Dec 2017 13:43:23 +0000 Subject: [PATCH] example to show the difference between "sum by" and "sum without" (#3558) --- docs/querying/operators.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/querying/operators.md b/docs/querying/operators.md index 06fe82d84..670570167 100644 --- a/docs/querying/operators.md +++ b/docs/querying/operators.md @@ -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: