2022-05-26 23:06:25 +08:00
---
aliases:
2024-03-14 23:58:18 +08:00
- ./metrics/ # /docs/grafana/< GRAFANA_VERSION > /alerting/metrics/
- ./unified-alerting/fundamentals/ # /docs/grafana/< GRAFANA_VERSION > /alerting/unified-alerting/fundamentals/
2023-07-18 18:29:00 +08:00
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/
2023-12-12 18:26:36 +08:00
description: Learn about the fundamentals of Grafana Alerting as well as the key features it offers
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
menuTitle: Introduction
2025-06-26 20:25:32 +08:00
title: Introduction to Grafana Alerting
2023-10-25 02:31:03 +08:00
weight: 100
2024-05-21 20:43:21 +08:00
refs:
2024-11-07 23:35:27 +08:00
notifications:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/notifications/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/notifications/
2024-05-21 20:43:21 +08:00
notification-policies:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/notifications/notification-policies/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/notifications/notification-policies/
silences:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/create-silence/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/create-silence/
alert-rules:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/alert-rules/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/alert-rules/
contact-points:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/notifications/contact-points/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/notifications/contact-points/
mute-timings:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/mute-timings/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/mute-timings/
external-alertmanagers:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/set-up/configure-alertmanager/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/set-up/configure-alertmanager/
alert-rule-evaluation:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/alert-rules/rule-evaluation/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/alert-rules/rule-evaluation/
2024-06-18 15:44:56 +08:00
group-alert-notifications:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/fundamentals/notifications/group-alert-notifications/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/fundamentals/notifications/group-alert-notifications/
2025-06-26 20:25:32 +08:00
multi-dimensional-alerts-example:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/best-practices/multi-dimensional-alerts/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/best-practices/multi-dimensional-alerts/
tutorials:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/best-practices/tutorials/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/best-practices/tutorials/
2022-05-26 23:06:25 +08:00
---
2021-10-28 04:57:54 +08:00
2025-06-26 20:25:32 +08:00
# Introduction to Grafana Alerting
2021-10-28 04:57:54 +08:00
2025-06-26 20:25:32 +08:00
Grafana Alerting lets you define alert rules across multiple data sources and manage notifications with flexible routing.
Built on the Prometheus alerting model, it integrates with the Grafana stack to provide a scalable and effective alerting setup across a wide range of environments.
2024-09-02 22:40:16 +08:00
{{< admonition type = "tip" > }}
2025-06-26 20:25:32 +08:00
For a hands-on introduction, refer to [Getting started with Grafana Alerting tutorials ](ref:tutorials ).
2024-09-02 22:40:16 +08:00
{{< / admonition > }}
2022-11-10 20:35:24 +08:00
2025-06-26 20:25:32 +08:00
## How it works at a glance
2024-06-18 15:44:56 +08:00
{{< figure src = "/media/docs/alerting/alerting-configure-notifications-v2.png" max-width = "750px" alt = "How Grafana Alerting works" > }}
2022-11-10 20:35:24 +08:00
2025-06-26 20:25:32 +08:00
1. Grafana Alerting periodically evaluates alert rules by executing their data source queries and checking their conditions.
1. Each alert rule can produce multiple alert instances—one per time series or dimension.
1. If a condition is breached, an alert instance fires.
1. Firing (and resolved) alert instances are sent for notifications, either directly to a contact point or through notification policies for more flexibility.
2024-02-28 16:10:19 +08:00
2023-10-23 18:03:20 +08:00
## Fundamentals
2022-11-10 20:35:24 +08:00
2024-02-28 16:10:19 +08:00
The following concepts are key to your understanding of how Grafana Alerting works.
2023-10-23 18:03:20 +08:00
### Alert rules
2022-11-10 20:35:24 +08:00
2024-05-21 20:43:21 +08:00
An [alert rule ](ref:alert-rules ) consists of one or more queries and expressions that select the data you want to measure. It also contains a condition, which is the threshold that an alert rule must meet or exceed to fire.
2024-02-28 16:10:19 +08:00
2024-06-18 15:44:56 +08:00
In the alert rule, choose the contact point or notification policies to determine how to receive the alert notifications.
2024-02-28 16:10:19 +08:00
2025-06-26 20:25:32 +08:00
### Alert rule evaluation
[Alert rules are frequently evaluated ](ref:alert-rule-evaluation ) and the state of their alert instances is updated accordingly. Only alert instances that are in a firing or resolved state are sent in notifications.
2024-02-28 16:10:19 +08:00
### Alert instances
2025-06-26 20:25:32 +08:00
Each alert rule can produce multiple alert instances (also known as alerts) - one alert instance for each time series or dimension. This is allows you to observe multiple resources in a single expression.
2023-04-21 19:24:43 +08:00
2024-03-21 18:06:49 +08:00
```promql
sum by(cpu) (
rate(node_cpu_seconds_total{mode!="idle"}[1m])
)
```
2023-04-21 19:24:43 +08:00
2024-04-26 18:17:06 +08:00
A rule using the PromQL expression above creates as many alert instances as the amount of CPUs after the first evaluation, enabling a single rule to report the status of each CPU.
2023-04-21 19:24:43 +08:00
2025-06-26 20:25:32 +08:00
{{< figure src = "/static/img/docs/alerting/unified/multi-dimensional-alert.png" alt = "Multiple alert instances from a single alert rule" > }}
2023-05-31 20:19:33 +08:00
2025-06-26 20:25:32 +08:00
_For a demo, see the [multi-dimensional alerts example ](ref:multi-dimensional-alerts-example )._
2023-05-31 20:19:33 +08:00
2024-06-18 15:44:56 +08:00
### Contact points
2023-04-21 19:24:43 +08:00
2025-04-08 00:51:49 +08:00
[Contact points ](ref:contact-points ) determine the notification message and where notifications are sent. For example, you might have a contact point that sends notifications to an email address, to Slack, to an incident management system (IRM) such as Grafana IRM or PagerDuty, or to a webhook.
2023-05-31 20:19:33 +08:00
2024-11-07 23:35:27 +08:00
### Notification messages
By default, notification messages include alert details, such as the number of alerts, their status, and annotations to help responders address alert issues. Notification messages can also be customized.
2024-06-18 15:44:56 +08:00
In the alert rule, you can choose a contact point to receive the alert notifications or use notification policies instead.
2023-05-31 20:19:33 +08:00
2024-06-18 15:44:56 +08:00
### Notification policies
2023-07-10 18:51:29 +08:00
2025-06-26 20:25:32 +08:00
[Notification policies ](ref:notification-policies ) are an advanced option for handling alert notifications by distinct scopes, such as by team or service—ideal for managing large alerting systems.
2024-03-06 19:24:02 +08:00
2025-06-26 20:25:32 +08:00
Notification policies routes alerts to contact points via label matching. They are defined in a tree structure, where the root of the notification policy tree is the **Default notification policy** , which ensures all alert instances are handled.
2024-06-18 15:44:56 +08:00
{{< figure src = "/media/docs/alerting/notification-routing.png" max-width = "750px" alt = "A diagram displaying how the notification policy tree routes alerts" caption = "Routing firing alert instances through notification policies" > }}
2024-03-06 19:24:02 +08:00
2024-06-18 15:44:56 +08:00
< br / >
2024-03-06 19:24:02 +08:00
2025-06-26 20:25:32 +08:00
Each notification policy decides where to send the alert (contact point) and when to send the notification (timing options).
### Notification grouping
2024-06-18 15:44:56 +08:00
2025-06-26 20:25:32 +08:00
To reduce alert noise, Grafana Alerting [groups related firing alerts into a single notification ](ref:group-alert-notifications ) by default. You can customize this behavior in the alert rule or notification policy settings.
2024-03-06 19:24:02 +08:00
2024-03-21 18:06:49 +08:00
### Silences and mute timings
2024-03-06 19:24:02 +08:00
2025-02-12 18:12:40 +08:00
[Silences ](ref:silences ) and [mute timings ](ref:mute-timings ) allow you to pause notifications without interrupting alert rule evaluation. Use a silence to pause notifications on a one-time basis, such as during a maintenance window; and use mute timings to pause notifications at regular intervals, such as evenings and weekends.