Interview Prep/Monitoring & Observability/Prometheus storage, memory and cardinality

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality