Understanding histogram_quantile based on rate in Prometheus
问题 According to Prometheus documentation in order to have a 95th percentile using histogram metric I can use following query: histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le)) Source: https://prometheus.io/docs/practices/histograms/#quantiles Since each bucket of histogram is a counter we can calculate rate each of the buckets as: per-second average rate of increase of the time series in the range vector. See: https://prometheus.io/docs/prometheus/latest