Alerting Overview
Alerting turns your observability data into action. Define the conditions that matter — an error spike in your logs, a latency regression across traces, a shrinking error budget — and the stack notifies your responders before those conditions reach users.
How alerting works
Section titled “How alerting works”Every alert follows the same path, whether it started from a log query or a metric:
- Rule — a query that runs on a schedule. A log rule queries your OpenSearch indices with PPL; a metric rule queries Prometheus with PromQL.
- Trigger — a condition on the rule’s results that decides when to fire (for example, “error count over the last 5 minutes exceeds 100”).
- Alert — an active instance of a fired trigger. One rule can fan out into many alerts — one per service, host, or other dimension in the query.
- Notification — where a firing alert is routed: Slack, PagerDuty, email, or a custom webhook.
Firing alerts from every rule land in one place — the Unified Alerts View — so responders never have to know which engine produced an alert.
Log rules and metric rules
Section titled “Log rules and metric rules”You alert on two kinds of data, and the stack has a rule type for each:
| Rule type | Runs on | Written in | Best for |
|---|---|---|---|
| Log rules | OpenSearch indices — logs and traces | PPL | Error-log spikes, trace-count thresholds, per-service conditions — anything you can query over your indexed telemetry |
| Metric rules | Prometheus time series | PromQL | Metric thresholds, rate-based and RED-method alerts, SLO burn-rate alerts |
Most teams run both, and both are created in the Unified Alerts View: log rules for anything indexed in OpenSearch, metric rules for anything in Prometheus. Log rules are written in PPL — the same piped language you already use in Discover — so if you can query it, you can alert on it.
Choosing where to define an alert
Section titled “Choosing where to define an alert”| Signal | Define it as |
|---|---|
| Error-log spikes, trace counts, per-service conditions — anything indexed in OpenSearch | Log rule (PPL) |
| Metric thresholds, rate-based alerts, RED-method alerts | Metric rule (Prometheus PromQL) |
| Reliability targets and error-budget burn | SLO (deploys PromQL burn-rate rules for you) |
| Unexpected deviations without a fixed threshold | Anomaly detector |
| A metric trending toward a limit | Forecast |