All Products
Search
Document Center

Managed Service for Grafana:Configure Grafana native alerting

Last Updated:Mar 11, 2026

Grafana native alerting monitors metric data from connected data sources and sends notifications when values breach defined thresholds. You define alert rules that specify the conditions, then configure notification destinations and routing policies so the right team members are notified before issues impact services.

The configuration workflow differs between two Grafana version families:

Grafana versionAlerting modelKey difference
8.2.x and earlierClassic alertingNotification channels are configured per alert rule.
Later than 8.2.xUnified alertingAlert rules, contact points, and notification policies are configured independently and linked through label-based routing.

Set up alerting in Grafana 8.2.x and earlier

image

Classic alerting ties notification channels directly to individual alert rules. Complete these steps in order: log on to Grafana, create a notification channel, create an alert rule on a dashboard panel, and verify the rule.

Step 1: Log on to Grafana

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. On the Workspace Management page, find the target workspace and click its URL in the URL column to open Grafana.

Note

Log on with the Grafana administrator account and the password you set when creating the workspace. Alternatively, click Sign in with Alibaba Cloud to use your current Alibaba Cloud account.

Step 2: Create a notification channel

A notification channel defines where and how Grafana delivers alert notifications.

  1. In the left-side navigation pane, click image and select Notification channels.

  2. Click New channel and configure the following parameters.

image
ParameterDescription
NameA descriptive name for the channel, such as ops-team-dingtalk.
TypeThe notification method. Options include DingTalk, webhook, and email.
AddressesThe destination endpoint. For DingTalk, enter the webhook URL of a DingTalk chatbot. For details, see Obtain the webhook URL of a DingTalk chatbot.

Step 3: Create an alert rule

  1. In the left-side navigation pane, choose image.png > Dashboard. Click Add an empty panel.

  2. On the Query tab, select a data source and write a query. Then switch to the Alert tab and click Create Alert.

image
ParameterDescription
RuleName: A descriptive name for the alert rule.
Evaluate Every: How often Grafana evaluates the rule. Common values: 1m, 2m, 5m.
For: How long the condition must be met before Grafana fires the alert. For example, setting this to 5m means the threshold must be breached continuously for 5 minutes before a notification is sent. This filters out brief spikes.
ConditionsThe threshold expression that triggers the alert. For example, "when the average of Query A is above 600."
No data and error handlingSpecifies whether to send alert notifications when no data is available or the query times out.
NotificationsSend to: Select the notification channel created in Step 2.
Message: Custom notification content. For supported template expressions, see Message templating.
Tags: Custom key-value tags attached to the alert for filtering and grouping.

(Optional) Step 4: View the alert rule

In the left-side navigation pane, choose image > Alert Rules to view all configured alert rules and their current states.

Set up alerting in Grafana versions later than 8.2.x

image

Unified alerting decouples alert rules from notification destinations. Alert rules, contact points, and notification policies are configured independently, then linked through label-based routing.

Note

The UI differs slightly between Grafana 9.0.x and Grafana 10.0.x. This section uses Grafana 9.0.x as an example. You can also create alert rules by adding an empty panel, as described in Step 3 under Grafana 8.2.x.

Step 1: Disable the ARMS alerting plug-in

ARMS alerting and Grafana native alerting cannot run simultaneously. Disable ARMS alerting first.

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. On the Workspace Management page, click the workspace ID to open its settings.

  3. In the left-side navigation pane, click Alert Management. Disable the ARMS alerting plug-in and enable Grafana native alerting.

Step 2: Create an alert rule

  1. On the Workspace Management page, find the target workspace and click its URL in the URL column to open Grafana.

Note

Log on with the Grafana administrator account and the password you set when creating the workspace. Alternatively, click Sign in with Alibaba Cloud to use your current Alibaba Cloud account.

  1. In the left-side navigation pane, choose image.png > Alert rules. Click New alert rule or Create alert rule.

  2. Configure the alert rule and click Save.

image
ParameterDescription
Set a query and alert conditionDefine the data query and the condition that triggers the alert.
Query patterns: The data source query that retrieves the metric to monitor.
Operation: The condition type. Classic condition is compatible with Grafana 8.2.x-style rules.
Conditions: The threshold expression. For example, "when the average of Query A is above 600."
Alert evaluation behaviorControls how frequently the rule is evaluated and how it handles edge cases.
Evaluate Every: How often Grafana evaluates the rule (for example, 1m, 2m, 5m).
For: How long it takes to send an alert event to the corresponding notification channel when triggering alerts.
Configure no data and error handling: What happens when the query returns no data or encounters an error.
Add details for your alertMetadata that helps organize and identify the alert rule.
Rule Name: A descriptive name for the alert rule.
Folder: The folder to which the alert rule belongs.
Group: The evaluation group. Rules in the same group are evaluated together on the same schedule.
Summary and annotations: Additional context such as the alert content, the dashboards to which the alert rule applies, and the folder.
NotificationsCustom Labels: Key-value pairs used by notification policies to route this alert to the correct contact point.
  1. On the Alert rules page, verify that the new rule appears and shows the expected state.

Step 3: Create a contact point

A contact point defines where and how notifications are delivered.

  1. In the left-side navigation pane, choose image.png > Contact points.

  2. On the Contact points tab, click New contact Point or Add contact point.

  3. Configure the following parameters.

ParameterDescription
NameA descriptive name for the contact point, such as ops-team-webhook.
Contact point typeThe delivery method. Options include DingTalk, webhook, and email.
AddressesThe destination endpoint. For DingTalk, enter the webhook URL of a DingTalk chatbot. For details, 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.

  1. In the left-side navigation pane, choose image.png > Notification policies.

  2. On the Notification policies tab, click New nested policy or New specific policy.

  3. Configure the following parameters.

image
ParameterDescription
Matching labelsLabel matchers that determine which alerts this policy handles. For example, severity=critical routes all critical alerts to the specified contact point.
Contact pointThe contact point that receives notifications for matching alerts.

Configure the alert grouping and silencing options based on your needs.