Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

The team uses `histogram_quantile(0.99, ...)` on dashboards and wants to average p99 across 12 pods.

IntermediateScenarioObservability & Telemetry Decisions
Answer

Situation read → Percentiles cannot be averaged; the average of per-pod p99s is not the service p99.

What I'd do →

  1. Aggregate histogram buckets first, then compute the quantile:
    histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket{job="checkout"}[5m])))
    
  2. Remove avg(histogram_quantile(...)) panels.
  3. Check bucket boundaries match the SLO threshold (for example a 0.3 bucket for a 300 ms target).
  4. Consider native histograms in Prometheus for better accuracy.

Why → Averaging percentiles hides tail latency, which is what users feel.

Interview tip → "Sum the buckets, then take the quantile" is the line.

All SRE & Reliability questions

More on Observability & Telemetry Decisions