If an alert rule is triggered for multiple resources of the same Alibaba Cloud account within a specified cycle, CloudMonitor sends the first alert notification and merges subsequent alert notifications on a minute-by-minute basis. This reduces the consumption of CloudMonitor resources and prevents 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 if alert notifications are merged.

Configure an alert rule on the Application Group page

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

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, click Application Group.
  3. On the Application Group tab, click the name of the testGroup application group.
  4. In the left-side navigation pane, click Alert Rules.
  5. Click Create Alert Rule.
  6. In the Create Alert Rule panel, set the Product parameter to ECS.
  7. Click Add Rules, set the parameters, and then click OK.
    Parameter Example
    Alert Rule test_cpu_alarm
    Metric Name (Agent) Host.cpu.total (Recommend)
    Threshold >=10%
    Alert Level Info
    Notification Methods Email + DingTalk
  8. Set the Alert Contact Group parameter to Alarm_Group and click OK.
    If multiple resources meet the conditions of the alert rule within a specified cycle, alert notifications are automatically merged. The notification information varies based on the alert notification methods.
    • Emails
      • The first alert notification shows the alert information of the first resource in the application group. Email 1
      • After 1 minute, CloudMonitor 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 of the first resource in the application group. DingTalk Chatbot 1
      • After 1 minute, CloudMonitor 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-triggered alert rule for all resources by using the alert service

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

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
  3. On the Alert Rules page, click Create Alert Rule.
  4. In the Create Alert Rule panel, 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 Level Info
    Notification Methods Email + DingTalk
    Alert Contact Group Alarm_Group
  5. Click OK.
    If multiple resources meet the conditions of the alert rule within a specified cycle, alert notifications are automatically merged. The notification information varies based on the alert notification methods.
    • Emails
      • The first alert notification shows the alert information of the first resource in the application group. Email 1
      • After 1 minute, CloudMonitor 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 of the first resource in the application group. DingTalk Chatbot 1
      • After 1 minute, CloudMonitor merges the alert notifications of multiple resources within a specified cycle. Only the information about the first 20 resources is displayed. DingTalk Chatbot 2