sum of rate function in prometheus - Stack Overflow
stackoverflow.com › questions › 65003764Nov 25, 2020 · The sum function will sum the values of the different rates; and sum(rate(requests[3 sec])) will give you only one value: {} 42.13 <-- the sum of all rate(requests[3s]) values BONUS: In the case you metric have multiple dimensions (represented by multiple labels in your metric) you can tell sum() to operate on a subset of them: sum(rate(requests[3 sec])) ON(foo)