PCA (Prometheus Certified Associate) sample exam question with answer 78
Question:
Which of the following queries will return the currently firing alerts in Alertmanager?
- ALERTS{alertstate="firing"}
- ALERTS
- ALERTS{alertstate="firing",location="alertmanager"}
- No such query exists
Answer:
D - is the correct answer.
While Prometheus exposes the synthetic ALERTS time series based on the alerts it evaluates, the only way to get the currently firing alerts in Alertmanager is via the Alertmanager API, not PromQL.
Reference:
Inspecting alerts during runtime