Prometheus & TSDB Errors // SeriesStore Lab
High Pod Churn Cardinality Explosion in Kubernetes
Rolling deployments, CronJobs, and HPA autoscaling create thousands of short-lived pod and container_id label sets every hour, poisoning TSDB index memory.
Measured TSDB & Cardinality Telemetry
When daily series churn hits 40-100%, Prometheus keeps dead series symbols and postings in its head block until the next compaction cycle. On Grafana Cloud ($8+/1k active series), a single misbehaving CronJob can add $1,600+/mo in active-series overages.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| 50% Daily Churn Prometheus RAM | 7.4 - 9.2 KB / series | Postings table and symbol cache balloon rapidly |
| 50% Daily Churn VictoriaMetrics RAM | 1.05 - 1.30 KB / series | IndexDB splits old vs current day lookup partitions |
| Grafana Cloud Cost per 100k Churn | $800+/mo metered | Zero per-series fees on self-hosted VictoriaMetrics |
Step-by-Step Diagnostic & Config Remediation
- Identify top churning metric names: Query /api/v1/status/tsdb inside VictoriaMetrics vmui to rank seriesCountByMetricName.
- Drop ephemeral label dimensions: Use metric_relabel_configs to strip container_label_* and raw pod UIDs on high-volume cAdvisor metrics.
- Enable IndexDB day-level partitioning: VictoriaMetrics automatically isolates per-day index entries so yesterday churned pods stay cold on disk.
curl -s http://127.0.0.1:8428/api/v1/status/tsdb | jq '.data.seriesCountByMetricName[:10]'
# Drop noisy cAdvisor labels in scrape-prometheus.yml:
metric_relabel_configs:
- regex: "id|image|container_label_.*"
action: labeldrop
Diagnostic FAQ
How does VictoriaMetrics handle 50%+ daily pod churn differently?
VictoriaMetrics partitions IndexDB by day (and global index) and flushes inactive series to disk instead of pinning them in heap RAM.
Will dropping raw pod labels break deployment alerts?
Keep namespace, deployment, and container labels while dropping ephemeral pod_template_hash or container_id labels where unneeded.