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

All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet

Was this page helpful?