Prometheus and PromQL 3 · Rates and aggregation
95th percentile latency
Estimate a percentile from a histogram's buckets. Always sum by le first.
histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket[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
- Top N series
- Average over time
All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet