aggregation operator

A PromQL operator such as sum, count or max that combines many series into fewer, optionally grouped by chosen labels.

In more detail

sum by (route) adds values and keeps only the route label; count tells you how many series matched, a quick way to spot an unexpected dimension. Calculate the rate of each series first and aggregate afterwards, and never average rates or percentiles without their weights.

Example

sum by (route) (rate(http_requests_total[5m]))

Related terms

Taught in

References

Certification courses