Your team wants to move to native histograms. What changes and what are the risks?
AdvancedScenarioPrometheus and PromQL at Scale
Answer
Situation read → Native histograms store a full distribution in a single series with exponential buckets. They reduce cardinality and give better resolution, but are a different data model.
What I'd do →
- Check client library support and enable it in the app (e.g. client_golang with native histogram options).
- Enable ingestion on Prometheus (
--enable-feature=native-histograms, version-dependent) and scrape using protobuf, or use the OpenTelemetry exponential histogram path. - Run dual exposure (classic plus native) during migration, then switch queries to
histogram_quantile(0.99, sum(rate(x[5m])))withoutle. - Check that remote storage (Mimir, Thanos, Grafana Cloud) supports them.
- Update recording rules, alerts, and dashboards.
Why → Gradual migration avoids blind spots in alerts that depend on _bucket series.
Interview tip → Mention the win: fewer series, no manual bucket tuning.
More on Prometheus and PromQL at Scale
Prometheus memory has grown to 60 GB and keeps climbing. How do you find the cause?IntermediateA developer added `user_id` as a metric label. What is the problem and what do you advise?BeginnerYour dashboard shows the average of per-pod p99 latencies. Why is it wrong, and how do you compute a correct fleet-wide p99?IntermediateChoose histogram bucket boundaries for a service with a 300 ms latency SLO.AdvancedYou have 500 short-lived batch jobs that finish before Prometheus can scrape them. How do you capture their metrics?IntermediateYour EC2 fleet autoscales constantly. How do you keep Prometheus targets up to date?Intermediate