Prometheus on Kubernetes loses all data on every pod reschedule
BeginnerTroubleshootingPrometheus storage, memory and cardinality
Answer
Likely causes → Storage is emptyDir because no storageSpec/PVC was configured.
Diagnose →
kubectl get pod prometheus-k8s-0 -n monitoring -o jsonpath='{.spec.volumes}' | jq
kubectl get pvc -n monitoring
Fix → In the Prometheus CR set:
storage:
volumeClaimTemplate:
spec:
storageClassName: gp3
resources: { requests: { storage: 200Gi } }
Prevent → Make persistent storage a required value in your Helm values review.
More on Prometheus storage, memory and cardinality
Prometheus pod restarts with `OOMKilled` every few hoursIntermediateA query fails with `query processing would load too many samples into memory in query execution`IntermediateHead series jumped from 2M to 9M after a deployAdvancedPrometheus logs `opening storage failed: ... unexpected EOF` / `corruption in segment` and won't startAdvancedPrometheus is in CrashLoopBackOff with `no space left on device`BeginnerPrometheus takes 15 minutes to become ready after a restartAdvanced