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.
More on Cardinality Control & Cost
What is cardinality and why is it the main cost driver for metrics?BeginnerHow do you find which metrics and labels are driving cardinality?IntermediateWhich labels should never appear on metrics?BeginnerHow do you enforce cardinality limits so one team cannot blow up the shared system?AdvancedHow do you drop or aggregate metrics you do not need?IntermediateHow do histograms affect cardinality, and how do you control it?Intermediate