Prometheus takes 15 minutes to become ready after a restart
AdvancedTroubleshootingPrometheus storage, memory and cardinality
Answer
Likely causes → WAL replay of a large head block. Time scales with active series and WAL size.
Diagnose → Logs show Replaying WAL progress; check du -sh /prometheus/wal and prometheus_tsdb_head_series.
Fix → Reduce cardinality, give more CPU during startup, enable --enable-feature=memory-snapshot-on-shutdown so clean restarts load a snapshot instead of replaying the full WAL.
Prevent → Raise readiness probe failureThreshold so Kubernetes does not kill it mid-replay, and run HA pairs.
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 is killed by the liveness probe during startup in a loopIntermediate