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.
More on Alerting and Alertmanager
An alert is `Firing` in Prometheus but nothing reaches AlertmanagerIntermediateAlertmanager shows the alert but Slack receives nothingBeginnerAlertmanager logs `notify retry canceled due to unrecoverable error after 1 attempts: channel_not_found`IntermediateAlertmanager logs `unexpected status code 404: no_service` / `invalid_token` for SlackBeginnerAlertmanager fails to load config: `yaml: unmarshal errors: field matchers not found in type config.plain`IntermediateAlerts fire constantly: the same alert re-notifies every 5 minutesBeginner