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

Prometheus is killed by the liveness probe during startup in a loop

IntermediateTroubleshootingPrometheus storage, memory and cardinality
Answer

Likely causes → WAL replay exceeds the probe budget, the kubelet restarts it, replay starts again from scratch.

Diagnose → kubectl describe pod shows Liveness probe failed followed by restarts; logs end during Replaying WAL.

Fix → Add a startupProbe with a generous failureThreshold * periodSeconds (e.g. 60 × 15s), or temporarily remove the liveness probe.

Prevent → Size probes for worst-case replay; the Prometheus Operator already sets a startupProbe in recent versions.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality