Interview Prep/Monitoring & Observability/Prometheus and PromQL at Scale

Prometheus memory has grown to 60 GB and keeps climbing. How do you find the cause?

IntermediateScenarioPrometheus and PromQL at Scale
Answer

Situation read → Prometheus memory scales mainly with active series (head block cardinality). A sudden climb means a label explosion.

What I'd do →

  1. Open /tsdb-status in the UI (or the API) to see top metrics by series count and top labels by value count.
  2. Query the series growth: prometheus_tsdb_head_series and rate(prometheus_tsdb_head_series_created_total[5m]).
  3. Find the top offenders:
topk(10, count by (__name__) ({__name__=~".+"}))
  1. Drop or relabel the bad label using metric_relabel_configs and labeldrop/drop, or fix the app.
  2. Set sample_limit/label_limit per scrape job as a guardrail.

Why → Memory is roughly proportional to active series, so you must find which metric or label has exploded.

Interview tip → Mention promtool tsdb analyze for offline inspection.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus and PromQL at Scale