Skip to Content
Docs

How Alerts Fire and Notifications Are Delivered

A rule defines a condition. An alert instance records that condition for one series. A subscription selects notifications and a destination receives them. Saving a rule does not by itself establish notification delivery.

mermaid
flowchart LR
  M[Metrics] --> R[Threshold rule]
  R --> I[Alert instance per series]
  E[Agent lifecycle request] --> N[Event notification]
  I --> S[Matching subscriptions]
  N --> S
  S --> Q[Silence and delivery checks]
  Q --> D[Destination]

Choose a Window and Sustained Duration

The window defines the observation period for a windowed metric or activity query. The for duration defines how long observed breaches must persist before firing. For example, a five-minute backlog observation with for: 10m must remain over the threshold across evaluations for ten minutes. for: 0s permits firing on the first breaching observation.

Use whole-number durations such as 30s, 5m, or 2h. Compound and fractional forms such as 1h30m and 0.5h are unsupported. A rule's generic defaults are window: 5m and for: 10m; templates may explicitly choose different values.

Current-state object and attachment queries inspect the latest applicable stored state at the evaluation cutoff. Their window does not restrict the query to objects created in that period. See Supported alert metrics.

Understand State

State Meaning What to check
pending A breach has been observed, but the sustained duration is not complete. Continued successful observations and for.
firing The observed condition met the threshold and duration. Routing and delivery separately.
resolved A successful evaluation established that the condition ended. The observed value and recovery subscription setting.
stale A previously active series is no longer available to the rule. Source availability or changed series membership. This is not recovery.
event A lifecycle request was observed. Request intent and event labels; there is no threshold recovery cycle.

Pending state is stored for inspection but is not sent as a threshold notification. A failed query does not advance the sustained-breach clock or establish recovery. Missing current-state data is not a numeric zero. A disappearing pending series can be discarded without a firing notification.

Changing an active rule can restart evaluation in pending state. Do not interpret that reset as a recovery. Ongoing firing conditions can produce repeat notifications according to delivery policy; repeated delivery is separate from a new condition transition.

Understand Series and Labels

A grouped rule tracks each returned series independently. An all-agent rule can produce one instance per agent. A Native Object rule grouped by $document_key tracks each object independently. The alert fingerprint identifies the rule and series; use it to inspect history and deliveries.

Grouping affects both identity and capacity. Rules are limited to 100 persistent series and can be disabled when that limit is exceeded. Narrow the population before enabling a high-cardinality rule.

Severity is info, warning, or critical. It helps people and subscriptions classify the alert; it does not change its threshold. Use stable identity labels when matching one series. Display annotations and descriptive values are not reliable identity selectors.

Keep Four Outcomes Separate

  1. Configuration: the rule is saved and enabled.
  2. Evaluation: the source can be read and evaluated successfully.
  3. Alert state: a series is pending, firing, resolved, stale, or an event.
  4. Delivery: a matching subscription passed silence and delivery checks, and the receiver accepted a notification.

notify: none records the author's intent to omit direct rule notification setup. Broader organization subscriptions can still match the alert. Use a silence when you need to suppress matching notifications temporarily.