Configure alert rules
Alert rules are the central component of your alerting system.
An alert rule consists of one or more queries and expressions that select the data you want to measure. It contains a condition to trigger the alert, an evaluation period that determines how often the rule is evaluated, and additional options to manage alert events and their notifications.
Grafana supports two types of alert rules:
Grafana-managed alert rules: These can query multiple data sources.
Data source-managed alert rules: These can only query Prometheus-based data sources and support horizontal scaling.
We recommend using Grafana-managed alert rules whenever possible, and opting for data source-managed alert rules when horizontal scaling is required. Refer to the comparison table of alert rule types for a more detailed overview.
Both types of alert rules can be configured in Grafana using the + New alert rule flow. For step-by-step instructions, refer to:
- Configure Grafana-managed alert rules
- Configure data source-managed alert rules
- Create and link alert rules to panels
Alert rules can also query metrics generated by recording rules. To learn more, refer to: