Prometheus native histograms let teams set resolution at scrape time instead of fixing buckets in code

Latency buckets chosen years ago in instrumentation code often no longer match current SLOs, and changing them means redeploying services. Prometheus native histograms store each histogram as a single structured sample with a sparse set of buckets whose bounds follow a geometric progression set by a schema integer. This removes the per-bound series that multiply with every business label, and lets resolution be adjusted without altering the instrumentation. Guard rails such as a bucket limit and a minimum growth factor cap the cost. The feature became experimental in v2.40.0 and stable in v3.8.0, according to the official specification, which the author read in November 2026.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in