If an alert rule is triggered for multiple resources of the same Alibaba Cloud account within a specified cycle, Cloud Monitor sends the first alert notification and merges subsequent alert notifications on a minute-by-minute basis. This reduces the consumption of Cloud Monitor resources and prevent the interference of redundant information. This topic describes how to merge alert notifications for different alert rules.

Alert notification methods

The following alert notification methods are affected by the alert notification merging feature: Emails and DingTalk chatbots. Only the first 20 resources are displayed when alert notifications are merged.

Configure an alert rule on the Application Groups page

In this example, the test_cpu_alarm alert rule is created to monitor the (Agent) Host.cpu.total (Recommend) metric of ECS instances in the testGroup application group. Alert notifications are sent to the Alarm_Group contact group by using emails and DingTalk chatbots. You must create the testGroup application group and the Alarm_Group contact group in advance.

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, click Application Groups.
  3. On the Application Groups page, click the application group name testGroup.
  4. In the left-side navigation pane, click Alert Rule.
  5. On the Threshold Value Alert tab, click Create Alert Rule.
  6. In the Add or Edit Rules pane, set Product Type to ECS.
  7. Click Add Rules, set the parameters and then click OK.
    Parameter Example
    Rule Name test_cpu_alarm
    Metric Name (Agent) Host.cpu.total (Recommend)
    Threshold >=10%
    Alert Severity Info
    Notification Methods Email + DingTalk
  8. Select the Alarm_Group contact group and then click Add.
    If the alert rule is triggered for multiple resources within a specified cycle, alert notifications are automatically merged. The notification information varies based on alert notification methods.
    • Emails
      • The first alert notification shows the alert information about the first resource in the application group.Email 1
      • After one minute, Cloud Monitor merges the alert notifications of multiple resources within a specified cycle. Only the information about the first 20 resources is displayed.Email 2
    • DingTalk chatbots
      • The first alert notification shows the alert information about the first resource in the application group.DingTalk Chatbot 1
      • After one minute, Cloud Monitor merges the alert notifications of multiple resources within a specified cycle. Only the information about the first 20 resources is displayed.DingTalk Chatbot 2

Configure a threshold-based alert rule for all resources by using the alerting feature

In this example, the test_cpu_alarm alert rule is created to monitor the (Agent) Host.cpu.total (Recommend) metric of all ECS instances. Alert notifications are sent to the Alarm_Group contact group by using emails and DingTalk chatbots.

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
  3. On the Threshold Value Alert tab, click Create Alert Rule.
  4. On the Create Alert Rule page, set the parameters.
    Parameter Example
    Product ECS
    Resource Range All resources
    Alert Rule test_cpu_alarm
    Metric Name (Agent) Host.cpu.total (Recommend)
    Cycle 1 minute
    Threshold Maximum value >= 10%
    Periods 5
    Alert Severity Info
    Notification Methods Email + DingTalk
    Contact Group Alarm_Group
  5. Click Confirm.
    If the alert rule is triggered for multiple resources within a specified cycle, alert notifications are automatically merged. The notification information varies based on alert notification methods.
    • Emails
      • The first alert notification shows the alert information about the first resource in the application group.Email 1
      • After one minute, Cloud Monitor merges the alert notifications of multiple resources within a specified cycle. Only the information about the first 20 resources is displayed.Email 2
    • DingTalk chatbots
      • The first alert notification shows the alert information about the first resource in the application group.DingTalk Chatbot 1
      • After one minute, Cloud Monitor merges the alert notifications of multiple resources within a specified cycle. Only the information about the first 20 resources is displayed.DingTalk Chatbot 2