for duration
The part of an alerting rule saying how long its condition must stay true before the alert fires.
In more detail
Requiring persistence filters out brief blips such as one failed scrape or a quick restart. Too long a duration delays detection of a real outage, so choose it from the failure mode and the response time you need.
Example
for: 5mRelated terms
- alerting rule — A Prometheus rule with a PromQL expression that describes an unhealthy condition, plus a for duration, labels and annotations.
- firing — The state of an alert whose condition has stayed true for the whole for duration, so it is sent to be routed to people.
Taught in
- Alerting Rules And The For Duration — Full-Stack Observability: Metrics, Tracing & Logging
- Paged Three Minutes Late: Alerting Rules — Prometheus Certified Associate (PCA) Exam Prep
- Alerting Sprint: Eleven Calls In Three Rounds — Prometheus Certified Associate (PCA) Exam Prep
- Seventy Seven Percent, Book Now? The Full Mock — Prometheus Certified Associate (PCA) Exam Prep