Consolidate alert notifications

更新时间:
复制 MD 格式

If multiple resources in your Alibaba Cloud account trigger the same alert rule within a single cycle, Cloud Monitor consolidates the notifications to reduce alert fatigue and resource usage. After the initial alert, subsequent consolidated notifications are sent at one-minute intervals. This topic explains how notification consolidation works for various alert rules.

Notification methods

Notification consolidation affects phone, SMS, email, and DingTalk chatbot notifications. After notifications are consolidated, the behavior varies by notification method:

  • Phone calls and SMS display detailed information only for the first resource. To view details for other resources, you must follow the link in the SMS message to open the Cloud Monitor console.

  • Email and DingTalk chatbot notifications display details for a maximum of 20 resources.

Threshold alert rule for an application group

Example: Create an alert rule namedtest_cpu_alarm to monitor the(Agent) Host.cpu.total (Recommended) metric for ECS instances in thetestGroup application group. Alert notifications are sent to theAlarm_Group alert contact group viaSMS, email, and DingTalk chatbot. Before you begin, create thetestGroup application group and theAlarm_Group alert contact group.

  1. Log on to the Cloud Monitor console.

  2. In the left-side navigation pane, click Application Groups.

  3. On the Application Groups tab, click the application group name testGroup.

  4. In the left-side navigation pane of the target application group, click Alert Rule.

  5. Click Create Alert Rule.

  6. In the Create Alert Rule panel, set Product to Elastic Compute Service (ECS).

  7. Click Add Rule, configure the alert rule for the ECS instances, and then click OK.

    Parameter

    Example

    Rule name

    test_cpu_alarm

    Metric

    (Agent) Host.cpu.total (Recommended)

    Threshold

    >=10%

    Alert level

    Warning

    Notification methods

    SMS+Email+DingTalk chatbot

  8. Set Alert Contact Group to Alarm_Group and click OK.

    After you configure the alert rule, if multiple resources trigger the alert within the same cycle, the notifications are automatically consolidated. The notification content varies by notification method:

    • SMS

      • The first alert notification contains the alert details for the first resource in the application group.

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated SMS message displays details for only the first resource. To view details for other resources, you must log in to the Cloud Monitor console.

    • Email

      • The first alert notification contains the alert details for the first resource in the application group.邮件1

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated email displays details for a maximum of 20 resources.邮件2

    • DingTalk chatbot

      • The first alert notification contains the alert details for the first resource in the application group.钉钉机器人1

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated DingTalk chatbot message displays details for a maximum of 20 resources.钉钉机器人2

Threshold alert rule for all resources

Example: Create an alert rule namedtest_cpu_alarm to monitor the(Agent) Host.cpu.total (Recommended) metric for all ECS resources. Alert notifications are sent to theAlarm_Group alert contact group viaSMS, email, and DingTalk chatbot.

  1. Log on to the Cloud Monitor 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, configure an alert rule and notification method for the specified metric of all ECS resources.

    Parameter

    Example

    Product

    ECS

    Resource range

    All Resources

    Rule name

    test_cpu_alarm

    Metric

    Instance dimension / (Agent)cpu.total

    Cycle

    1 minute

    Threshold

    Maximum >= 10%

    Consecutive cycles

    5

    Alert level

    Warn

    Notification methods

    SMS+Email+DingTalk chatbot

    Alert contact group

    Alarm_Group

  5. Click Confirm.

    After you configure the alert rule, if multiple resources trigger the alert within the same cycle, the notifications are automatically consolidated. The notification content varies by notification method:

    • SMS

      • The first alert notification contains the alert details for the first resource in the application group.

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated SMS message displays details for only the first resource. To view details for other resources, you must log in to the Cloud Monitor console.

    • Email

      • The first alert notification contains the alert details for the first resource in the application group.邮件1

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated email displays details for a maximum of 20 resources.邮件2

    • DingTalk chatbot

      • The first alert notification contains the alert details for the first resource in the application group.钉钉机器人1

      • After one minute, Cloud Monitor consolidates alerts for other resources. The consolidated DingTalk chatbot message displays details for a maximum of 20 resources.钉钉机器人2

Threshold alert rule for a specific instance

Example: Create an alert rule namedtest_node_alert to monitor theAverage bytes per request for a proxy metric for the specific instancer-bp1vfufnlnkt2c****-name(r-bp1vfufnlnkt2c****) of ApsaraDB for Redis (Cluster Edition). Alert notifications are sent to theAlarm_Group alert contact group viaSMS, email, and DingTalk chatbot.

  1. Log on to the Cloud Monitor 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, configure an alert rule and notification method for the specified metric of the specific ApsaraDB for Redis (Cluster Edition) instance.

    Parameter

    Example

    Product

    ApsaraDB for Redis (Cluster Edition)

    Resource range

    Instance

    Region

    China (Hangzhou)

    Instance

    r-bp1vfufnlnkt2c****-name(r-bp1vfufnlnkt2c****)

    Rule name

    test_node_alert

    Metric

    Average bytes per request for a proxy

    Cycle

    1 minute

    Threshold

    Average >= 0 Byte

    Consecutive cycles

    5

    Alert level

    Warning

    Notification methods

    SMS+Email+DingTalk chatbot

    Alert contact group

    Alarm_Group

  5. Click Confirm.

    After you configure the alert rule, if multiple nodes of the specific instance trigger the alert within the same cycle, the notifications are automatically consolidated. The notification content varies by notification method:

    • SMS

      • The first alert notification contains the alert details for the first node that triggered the alert.

      • After one minute, Cloud Monitor consolidates alerts for other nodes of the specific instance. The consolidated SMS message displays details for only the first node. To view details for other nodes, you must log in to the Cloud Monitor console.

    • Email

      • The first alert notification contains the alert details for the first node that triggered the alert.Redis集群版邮件1

      • After one minute, Cloud Monitor consolidates alerts for other nodes of the specific instance. The consolidated email displays details for a maximum of 20 nodes.Redis集群版邮件2

    • DingTalk chatbot

      • The first alert notification contains the alert details for the first node that triggered the alert.Redis集群版钉钉机器人1

      • After one minute, Cloud Monitor consolidates alerts for other nodes of the specific instance. The consolidated DingTalk chatbot message displays details for a maximum of 20 nodes.Redis集群版钉钉机器人2

Event alert rule from event monitoring

Example: Create an event alert rule named test_config_alarm, which monitors the target ApsaraDB for Redis cluster instance r-bp1vfufnlnkt2c****-name (r-bp1vfufnlnkt2c****) for the Average bytes per request for a proxy metric and sends alert notifications to the alert contact group Alarm_Group via email and a DingTalk chatbot. You must create the alert contact group Alarm_Group in advance.

  1. Log on to the Cloud Monitor console.

  2. In the left-side navigation pane, choose Event Center > System Event.

  3. On the Event Monitoring tab, click Save as Alert Rule.

  4. In the Create/Modify Event-triggered Alert Rule panel, configure an alert rule and notification method for system events from Cloud Config.

    Parameter

    Example

    Alert rule name

    test_config_alarm

    Product type

    Cloud Config

    Event type

    Notification

    Event level

    Info

    Event name

    configuration item change

    Resource range

    All Resources

    Alert method

    Select the Alert Notification checkbox.

    Alert contact group

    Alarm_Group

    Notification method

    Info (Email+DingTalk chatbot)

  5. Click OK.

    After you configure the alert rule, if multiple events trigger the alert within the same cycle, the notifications are automatically consolidated. The notification content varies by notification method:

    • Email

      • The first alert notification contains details about the first Cloud Config event.

      • After one minute, Cloud Monitor consolidates notifications for other Cloud Config events from the same period. The consolidated email displays information for a maximum of 20 events.

    • DingTalk chatbot

      • The first alert notification contains details about the first Cloud Config event.

      • After one minute, Cloud Monitor consolidates notifications for other Cloud Config events from the same period. The consolidated DingTalk chatbot message displays information for a maximum of 20 events.