Observability & OpenTelemetry
Histograms and latency percentiles
A dashboard says p99 is 295 ms against a 300 ms SLO, and a release is stopped. The real p99 was about 220 ms. Percentiles from histograms are estimates, and the bucket width sets how good they are.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Observability & OpenTelemetry
- CountersBeginner · 5 min
A 'traffic dropped to zero' alert fires after every deploy and clears by itself. The traffic never dropped: the graph is of a counter, and counters start over.
- GaugesBeginner · 5 min
A disk alert fires at 100% full, two minutes after the database stopped writing. A gauge held the whole story: the disk had been filling at 3 GB an hour for days.
- Labels and cardinalityBeginner · 5 min
One extra label took Prometheus from 3 GB to 11 GB in an hour. Every label value multiplies the number of series, and some labels have no upper limit.
- rateBeginner · 4 min
rate estimates per-second counter change over a window.
- sum byBeginner · 4 min
sum by aggregates series while keeping selected dimensions.
- histogram_quantileBeginner · 4 min
histogram_quantile estimates quantiles from classic histogram buckets.