ExitAmazon Managed Service for Prometheus: alerting rules1 / 10
Explanation

Turn a PromQL result into an alert

How workspace alerting rules evaluate PromQL expressions and use Alertmanager to group and route notifications to Amazon SNS. · associate

An alerting rule defines a condition over metrics already stored in an Amazon Managed Service for Prometheus workspace. You upload Prometheus-compatible rule definitions into a rule groups namespace. Each rule group is evaluated repeatedly at its configured interval; an alerting rule includes an alert name and a PromQL expression in expr.

For example, up == 0 returns the time series whose scrape status is zero. Each returned label set identifies an active alert instance. With for: 2m, that instance first becomes pending and becomes firing only if it continues to appear at evaluations throughout two minutes. Without for, an active instance can fire at its first evaluation.

The expression selects the problem; for filters out short-lived conditions. A five-minute range inside a PromQL expression is a calculation window, not a requirement that the condition remain true for five minutes. That persistence requirement belongs in for.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.