This is documentation for the next version of Grafana documentation. For the latest stable release, go to the latest version.
Caution
Pre-provisioned Loki and Prometheus data source-managed alerts have been deprecated in Grafana and can not be created in new stacks. New Grafana stacks will use Grafana-managed alerting (GMA) by default. Datasource-managed alerting (DMA) is not provisioned in new stacks. Existing stacks are not affected.
This applies to the default Loki and Prometheus Grafana Cloud data sources managed by Grafana Labs and Cloud Alertmanager, which will not be available nor will Grafana provision the data source for it. If you add your own Mimir, Loki, or Alertmanager data sources, you can continue to use data source-managed alerts.
Cloud users can import DMA rules into GMA rules with the import tool. See the import data source-managed alerts to Grafana-managed alerts documentation for information on how to do this.
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 — the recommended option. They can query backend data sources—including Prometheus-based ones—and offer a richer feature set.
Data source-managed alert rules — supported for Prometheus-based data sources (such as Mimir, Loki, and Prometheus), with rules stored in the data source itself.
You can convert and import data source-managed rules into Grafana-managed rules to let Grafana Alerting manage them.
Both types of alert rules can be configured in Grafana using the + New alert rule flow. For step-by-step instructions, refer to:
In Grafana Alerting, you can also configure recording rules, which pre-compute queries and save the results as new time series metrics for use in other alert rules or dashboard queries.


