linear interpolation
Estimating a value between two known points by assuming the values in between are spread evenly.
In more detail
histogram_quantile finds the bucket that holds the requested rank and interpolates inside it, because it never sees individual observations. The answer is only as precise as the bucket: a p99 landing between 1 and 2.5 seconds can come back as a suspiciously round 2 seconds.
Related terms
- histogram_quantile() — The PromQL function that estimates a percentile from a histogram's cumulative buckets.
- histogram bucket — One counter inside a histogram that counts every observation at or below its upper boundary.
Taught in
- Metric Types: Summaries And Histograms — Full-Stack Observability: Metrics, Tracing & Logging
- Why A Histogram Beats An Average — Full-Stack Observability: Metrics, Tracing & Logging
- Calculating Percentiles With histogram_quantile — Full-Stack Observability: Metrics, Tracing & Logging