Why shouldn't you build an SLO on `histogram_quantile(0.99, ...)`?
AdvancedConceptSLIs, SLOs & SLAs
Answer
Several reasons:
- A quantile is interpolated within a bucket, so it is an estimate whose accuracy depends on bucket layout.
- Quantiles cannot be aggregated across instances or over time; averaging p99s is mathematically meaningless.
- "p99 under 300 ms" checked per minute is a time-based SLI that ignores how many requests were slow.
- It does not translate into an error budget.
The bucket ratio le="0.3" / count is exact at the boundary, aggregates correctly with sum, and gives a good/total ratio that feeds burn-rate alerts. Keep p99 panels for diagnosis.
More on SLIs, SLOs & SLAs
Define SLI, SLO and SLA with an example of each.BeginnerWhy should the SLA be looser than the SLO?BeginnerWhy are SLIs best expressed as a ratio of good events to valid events?IntermediateWhat is the difference between request-based and time-based (window-based) SLIs?AdvancedWhere should you measure an SLI, and what are the trade-offs?AdvancedWhat types of SLIs exist beyond availability and latency?Intermediate