2022-05-26 23:06:25 +08:00
---
aliases:
2024-03-14 23:58:18 +08:00
- rules/ # /docs/grafana/< GRAFANA_VERSION > /alerting/rules/
- unified-alerting/alerting-rules/ # /docs/grafana/< GRAFANA_VERSION > /alerting/unified-alerting/alerting-rules/
- ./create-alerts/ # /docs/grafana/< GRAFANA_VERSION > /alerting/create-alerts/
2023-07-18 18:29:00 +08:00
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/
2024-02-27 21:00:09 +08:00
description: Configure alert rules
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
2024-02-27 21:00:09 +08:00
title: Configure alert rules
2023-10-25 02:31:03 +08:00
weight: 120
2022-05-26 23:06:25 +08:00
---
2021-06-04 00:59:45 +08:00
2024-02-27 21:00:09 +08:00
# Configure alert rules
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
An alert rule 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 in order to fire.
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
Create, manage, view, and adjust alert rules to alert on your metrics data or log entries from multiple data sources — no matter where your data is stored.
2021-08-06 21:52:36 +08:00
2024-02-27 18:56:11 +08:00
The main parts of alert rule creation are:
2021-10-28 04:57:54 +08:00
2024-02-27 18:56:11 +08:00
1. Select your data source
1. Query your data
1. Normalize your data
1. Set your threshold
2021-10-28 04:57:54 +08:00
2024-02-27 18:56:11 +08:00
**Query, expressions, and alert condition**
2021-06-04 00:59:45 +08:00
2024-02-27 18:56:11 +08:00
What are you monitoring? How are you measuring it?
2022-10-17 17:48:39 +08:00
2024-02-27 18:56:11 +08:00
{{< admonition type = "note" > }}
Expressions can only be used for Grafana-managed alert rules.
{{< / admonition > }}
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
**Evaluation**
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
How do you want your alert to be evaluated?
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
**Labels and notifications**
2023-06-20 17:43:12 +08:00
2024-02-27 18:56:11 +08:00
How do you want to route your alert? What kind of additional labels could you add to annotate your alert rules and ease searching?
2023-07-10 18:51:29 +08:00
2024-02-27 18:56:11 +08:00
**Annotations**
2023-07-10 18:51:29 +08:00
2024-02-27 18:56:11 +08:00
Do you want to add more context on the alert in your notification messages, for example, what caused the alert to fire? Which server did it happen on?