Anatomy of a rule
Metrics
The two
eval_* metrics require selecting a specific eval — the rule scores
against that eval’s results rather than raw span metrics.How evaluation works
A background evaluator sweeps every enabled rule on an interval (ALERT_EVAL_INTERVAL_MS, default 60s). For each rule it queries the metric
over the window and compares it to the threshold:
- ok → firing — threshold breached. Records a
firedevent (with the observed value and threshold) and emails the channel. - firing → ok — metric recovered. Records a
resolvedevent and emails. - still firing — re-notifies at most once per
ALERT_RENOTIFY_MS(default 1 hour) so you aren’t paged every minute.

