By setting up alert rules in Grafana, you can monitor various metric data within your services and notify O&M personnel promptly when an alert event occurs. This helps you identify and resolve issues timely, preventing service interruptions. This topic describes how to configure native alerting in Grafana.
Grafana 8.2.x and earlier versions
Step 1: Log on to Grafana
Log on to the ARMS console. In the left-side navigation pane, choose .
On the Workspace Management page, find the workspace that you want to manage and click the URL in the URL column to go to Grafana.
NoteYou can log on to Grafana with the administrator account of Grafana and the password that you configured when you created the workspace. You can also click Sign in with Alibaba Cloud to log on to Grafana with the current Alibaba Cloud account.
Step 2: Create a notification channel
In the left-side navigation pane, click
, select Notification channels. On the page that appears, click New channel to create a notification channel.
Parameter | Description |
Name | The channel name. |
Type | The notification method, such as DingTalk, webhook, or email. |
Addresses | The endpoint to which notifications are sent. In this topic, the webhook URL of a DingTalk chatbot is used as an example. For information about how to obtain the webhook URL of a DingTalk chatbot, see Obtain the webhook URL of a DingTalk chatbot. |
Step 3: Create an alert rule
In the left-side navigation pane, choose
> Dashboard. On the page that appears, click Add an empty panel. On the Query tab, select a data source and configure a query statement. On the Alert tab, click Create Alert to configure the alert rule.

Parameter
Description
Rule
Name: the name of the alert rule.
Evaluate Every: specifies how often the alert rule checks. The values 1m, 2m, and 5m specify checks every 1 minute, 2 minutes, or 5 minutes.
For: specifies how long it takes to send an alert event to the corresponding notification channel after the alert conditions are triggered.
Conditions
The alert conditions. The alert condition in the preceding figure shows that an alert is triggered when the average value of Query A exceeds 600.
No data and error handling
Specifies whether to send alert notifications when no data is available or the query times out.
Notifications
Send to: the endpoint to which notifications are sent. In this example, the webhook URL of a DingTalk chatbot configured in Step 2: Create an alert notification channel is used.
Message: the notification content. For information about the expressions supported in the notification content, see Message templating.
Tags: the custom tags of the alert rule.
(Optional) Step 4: View the alert rule
In the left-side navigation pane, choose
> Alert Rules. On the Alert Rules tab, view the alert rule.
Grafana versions later than 8.2.x
The alerting interaction experiences of Grafana 9.0.x and Grafana 10.0.x are slightly different. This topic uses Grafana 9.0.x as an example. In addition to Step 2 in this section, you can create alert rules by adding an empty panel in the same way as Step 3: Create an alert rule in the "Grafana 8.2.x and earlier versions" section.
Step 1: Disable the ARMS alerting plug-in
Log on to the ARMS console. In the left-side navigation pane, choose .
On the Workspace Management page, click the ID of the workspace that you want to manage.
In the left-side navigation pane, click Alert Management. On the page that appears, disable the ARMS alerting plug-in and enable Grafana native alerting.
Step 2: Create an alert rule
On the Workspace Management page, find the workspace that you want to manage and click the URL in the URL column to go to Grafana.
NoteYou can log on to Grafana with the administrator account of Grafana and the password that you configured when you created the workspace. You can also click Sign in with Alibaba Cloud to log on to Grafana with the current Alibaba Cloud account.
In the left-side navigation pane, choose
> Alert rules. On the page that appears, click New alert rule or Create alert rule. On the Create alert rule page, configure an alert rule and click Save.

Parameter
Description
Set a query and alert condition
Set the query statements and alert conditions.
Query patterns: the query statements.
Operation: the type of the alert condition. The valid value Classic condition is available to Grafana versions earlier than 8.2.x.
Conditions: the alert conditions. The alert condition in the preceding figure shows that an alert is triggered when the average value of Query A exceeds 600.
Alert evaluation behavior
Configure the alerting cycle and alert evaluation behavior.
Evaluate Every: specifies how often the alert rule checks. The values 1m, 2m, and 5m specify checks every 1 minute, 2 minutes, or 5 minutes.
For: specifies how long it takes to send an alert event to the corresponding notification channel when triggering alerts.
Configure no data and error handling: specifies whether to send alert notifications when no data is available or the query times out.
Add details for your alert
Configure the alert details.
Rule Name: the name of the alert rule.
Folder: the folder to which the alert rule belongs.
Group: the group to which the alert rule belongs. Within the same group, alerts are processed at the same cycle.
Summary and annotations: the alert content, the dashboards to which the alert rule applies, and folder.
Notifications
Custom Labels: the custom labels of the alert rule.
On the Alert rules page, view the alert rule.
Step 3: Create a contact point
In the left-side navigation pane, choose
> Contact points. On the Contact points tab, click New contact Point or Add contact point.
On the New contact point page, configure the following parameters.
Parameter
Description
Name
The name of the contact point.
Contact point type
The notification method, such as DingTalk, webhook, or email.
Addresses
The endpoint to which notifications are sent. In this topic, the webhook URL of a DingTalk chatbot is used as an example. For information about how to obtain the webhook URL of a DingTalk chatbot, see Obtain the webhook URL of a DingTalk chatbot.
Step 4: Create a notification policy
By creating a notification policy, you can link alert rules to the contact point.
In the left-side navigation pane, choose
> Notification policies. On the Notification policies tab, click New nested policy or New specific policy. Configure the following parameters. Then, you can send Grafana native alert notifications.

Parameter
Description
Matching labels
Select labels to specify the alert rules that apply.
Contact point
Specify the contact point to which alert events are sent.
Configure the alert grouping and silencing options based on your needs.