Interview Prep/Monitoring & Observability/Cardinality Control & Cost

What are native histograms and how do they change cost?

AdvancedProductionCardinality Control & Cost
Answer

Native (sparse/exponential) histograms store the whole distribution in a single series per label set with dynamic exponential buckets, instead of one series per bucket. Benefits: much lower series count, better resolution, no bucket guessing. Enable on the server with --enable-feature=native-histograms (scrape protobuf) and in client libraries. Costs: newer tooling support, different PromQL (histogram_quantile(0.99, sum(rate(x[5m]))) without le), and every component in the pipeline (remote_write, backend) must support them.

All Monitoring & Observability questions

More on Cardinality Control & Cost