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
forduration 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.
More on PromQL & Recording Rules
What are the PromQL data types?BeginnerWhat label matchers does PromQL support?BeginnerExplain `rate()`.Beginner`rate()` vs `irate()`: what is the difference?IntermediateWhat does `increase()` return and why is it sometimes a non-integer?IntermediateWhy must you `rate()` before `sum()`, never the reverse?Intermediate