- Excessive time series increases storage, indexing, and scrape pressure.
- Classic histograms multiply time series by the number of buckets for every unique label combination.
- Native histograms store distributions more efficiently, reducing cardinality and improving resolution where it matters.
- 5 HTTP methods × 10 status codes × 50 endpoints = 2,500 distinct label combinations
- If your histogram uses 13 buckets, that becomes:
- 2,500 label combinations × 13 buckets = 32,500 time series for a single histogram metric

- One time series per
lebucket (plussumandcount) for each label combination. - Bucket boundaries are fixed at instrumentation time. If the distribution changes, buckets can be either:
- Mostly empty (wasted series/storage), or
- Too coarse where precision is needed (poor resolution).
- Increasing the number of buckets improves precision but multiplies cardinality and costs.
- Classic histograms: one series per bucket per label set.
- Native histograms: encode the entire distribution (buckets, sum, count) into a single sparse time series.
- Empty or unused buckets cost essentially nothing, so cardinality remains tied to the labels, not the bucket count.
- The earlier example with 2,500 label combinations stays at roughly 2,500 series with native histograms instead of ~32,500 — at least a 13× reduction.
- Teams that use 20–30 buckets for better resolution can realize even larger savings.

_bucket series for each le value. This reduces scrape overhead, storage, and indexing pressure.
Configuration and support
- Prometheus added experimental support for scraping native histograms around 2022; support has matured in later releases.
- Exact availability and stability depend on your Prometheus version — check the Prometheus release notes and documentation for your version.
- Enable native histograms in Prometheus scrape configuration (globally or per scrape job) using:
- Prometheus documentation: https://prometheus.io/docs/
- Prometheus querying and histogram functions: https://prometheus.io/docs/prometheus/latest/querying/functions/
- Grafana: https://grafana.com/
- Grafana Mimir: https://grafana.com/oss/mimir/
Native histograms are supported end-to-end: Prometheus can scrape and store them, and tools like Grafana and Mimir, along with PromQL functions such as
histogram_count, histogram_sum, and histogram_quantile, operate natively on the encoded distribution.
Takeaway
- Classic histograms are among the largest real-world drivers of cardinality in metrics systems.
- Prometheus native histograms offer a production-ready alternative that reduces cardinality and adapts resolution automatically.
- If your metrics pipeline and tooling support them, native histograms are a practical tool to control cost and improve precision.
