Interview Prep/Monitoring & Observability/Prometheus storage, memory and cardinality

`prometheus_tsdb_head_series` is stable, but `prometheus_tsdb_head_series_created_total` rate is very high

AdvancedTroubleshootingPrometheus storage, memory and cardinality
Answer

Likely causes → Series churn: labels whose value changes over time (pod names in constant redeploys, version labels, Kubernetes Jobs/CronJobs). Each new series costs memory until the head is compacted.

Diagnose →

topk(10, sum by (job) (rate(scrape_series_added[1h])))

Fix → Drop churning labels you do not query, aggregate away pod in recording rules, stop CronJob pods from being scraped individually if not needed.

Prevent → Track churn per job as a capacity metric.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality