Prometheus p95 Disappears After sum(): Keep le in Classic Histogram Buckets
For classic Prometheus histograms, preserve le when you aggregate _bucket rates. The label identifies each cumulative bucket boundary that histogram_quantile() needs to estimate p95. Read the metric type before changing the query Confirm the series is a classic histogram, with a family such as http_request_duration_seconds_bucket . A native histogram uses a different aggregation shape. A separately exported summary quantile cannot be recombined into a fleet-wide percentile by averaging the reported quantiles. Aggregate buckets by service and boundary histogram_quantile( 0.95, sum by (service, le) ( rate(http_request_duration_seconds_bucket[5m]) ) ) Use labels that your metric actually supplies. In a synthetic two-replica service, this query pools the per-boundary observations. A busy replica contributes more observations, which is appropriate for request-weighted latency. Confirm bucket boundaries are compatible across aggregated instances and filter to the intended e...