Interview Prep/Monitoring & Observability/Alerting and Alertmanager

An alert shows `Pending` in Prometheus but never goes to `Firing`

BeginnerTroubleshootingAlerting and Alertmanager
Answer

Likely causes → The condition does not stay true for the full for: duration; a single evaluation dip resets the timer.

Diagnose → Graph the alert expression for the last hour and check for gaps or dips.

Fix → Smooth the expression (avg_over_time, longer rate window), or shorten for. Prometheus 2.42+ also supports keep_firing_for to stop flapping on resolve.

Prevent → Use windows long enough that one missed scrape does not reset the alert.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager