What do alert states inactive, pending and firing mean?

BeginnerConceptPromQL & Recording Rules
Answer
  • Inactive: the expression returns no result.
  • Pending: the expression is true, but has not been true for the full for duration yet.
  • Firing: true for at least for; Prometheus sends it to Alertmanager every evaluation (re-sent periodically).

When the expression stops returning, the alert resolves (after keep_firing_for if set). You can query ALERTS{alertstate="firing"} and ALERTS_FOR_STATE as series.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on PromQL & Recording Rules