Prometheus and PromQL 3 · Rates and aggregation
Top N series
Return the five busiest series.
topk(5, sum by (instance) (rate(http_requests_total[5m])))
Official Prometheus and PromQL 3 documentation
More rates and aggregation commands
- Per-second rate of a counter
- Total increase over a window
- Aggregate across series
- Error ratio
- 95th percentile latency
- Average over time
All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet