Interview Prep/Monitoring & Observability/Kubernetes Monitoring, Scale & Cloud

How does Prometheus memory and disk usage scale?

AdvancedConceptKubernetes Monitoring, Scale & Cloud
Answer

Memory is driven mainly by active series in the head block (the last ~2–3 hours), not by retention. Plan for a few KB per active series including labels, chunks and index overhead, plus query load and churn (series created and dropped by pod restarts).

Disk is driven by samples ingested and retention. Compressed samples take about 1–2 bytes each:

disk ≈ retention_seconds × ingested_samples_per_second × ~1.5 bytes
prometheus_tsdb_head_series
rate(prometheus_tsdb_head_samples_appended_total[5m])

Example: 1M active series at a 30 s interval ≈ 33k samples/s; 15 days (1.296M seconds) ≈ 43B samples × 1.5 bytes ≈ 65 GB, plus WAL. So doubling retention doubles disk; doubling series doubles both memory and disk.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes Monitoring, Scale & Cloud