Rich Histograms at Scale: A New Hope
summary
Argues that client percentiles are non‑aggregatable and that Prometheus’ per‑bucket series model explodes at scale, so adopt a single‑series histogram schema that packs buckets and sum/count together. Recommends exponential buckets (example: 1µs–60s range needs about 26 buckets for 100% error, 88 for 10%), notes many systems use 64 buckets, and reports a ~50x reduction in network I/O for 64‑bucket histograms, faster queries, less storage, fixes for +Inf clipping by sending max values, and ad‑hoc histograms derived from gauges (container CPU) for heatmaps.
AI-written summary · about
chapters (13)
- 0:00Introduction to histograms
- 1:10Why we need histograms
- 2:53Visualizing histogram data
- 6:45Key histogram properties
- 8:52Accuracy and bucket configuration
- 12:26Histograms at scale challenge
- 14:10Prometheus histogram model
- 18:09Single histogram schema benefits
- 21:44Usability and correctness issues
- 24:56Solving clipping in histograms
- 26:03Ad hoc histograms explained
- 27:11Summary and future potential
- 27:55Q&A session
