Interview Prep/Monitoring & Observability/Kubernetes & Multi-Cluster Observability

How do you size storage for Prometheus running in Kubernetes?

BeginnerProductionKubernetes & Multi-Cluster Observability
Answer

Roughly: ingested samples/s × bytes per sample (1–2 after compression) × retention seconds, plus about 30% for the WAL and compaction headroom.

rate(prometheus_tsdb_head_samples_appended_total[1h])

Example: 200k samples/s × 1.5 bytes × 15 days (1,296,000 s) ≈ 390 GB. Set retentionSize to about 85% of the PVC so Prometheus deletes old blocks before the disk fills, use an SSD storage class (gp3/pd-ssd) with allowVolumeExpansion: true, and never use NFS or EFS for the TSDB.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes & Multi-Cluster Observability