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.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate