You can customize alert rules to specify how CloudMonitor checks the monitoring data and when CloudMonitor sends alert notifications. After you set alert rules for important metrics, you can receive alert notifications immediately after exceptions occur and handle the exceptions at the earliest opportunity.

Background information

  • You can set a mute period, for example, 24 hours, for alert rules. After an alert is triggered based on an alert rule, CloudMonitor does not resend an alert notification when the alert is triggered again within the mute period.
  • By default, CloudMonitor adds your Alibaba Cloud account as an alert contact and automatically creates an alert group for the alert contact.

Step 1: Create an alert contact

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. On the Alert Contacts tab, click Create Alert Contact.
  4. In the Set Alert Contact panel,enter the name, email address, and DingTalk chatbot of the alert contact, and retain the default value Automatic for the Alert Notification Information Language parameter.
    Note Automatic indicates that Cloud Monitor automatically selects the language of alert notifications based on the language that you use to create your Alibaba Cloud account.
  5. Verify the parameters and then click OK.
  6. Optional. Activate the email address and phone number of the alert contact.
    By default, the email address and phone number of the alert contact are in the Pending Activation state. After the alert contact receives an email and text message that contain the activation links, the alert contact must activate the email address and phone number within 24 hours. Otherwise, the alert contact cannot receive alert notifications. After the email address and phone number are activated, they are displayed in the alert contact list.

Step 2: Create an alert group

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. Click the Alert Contact Group tab.
  4. On the Alert Contact Group tab, click Create Alert Contact Group.
  5. In the Create Alert Contact Group panel, specify the alert group name and add alert contacts to the alert group.
  6. Click Confirm.

Step 3: Create an alert rule with a static threshold

  1. Log on to the CloudMonitor 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 Threshold type parameter to Static threshold and set the parameters that are described in the following table.
    Parameter Description
    Product The name of the service monitored by CloudMonitor. Example: RDS-DB.
    Resource Range The resources to which the alert rule applies. Valid values:
    • All Resources: indicates that the alert rule applies to all resources included in the specified cloud service of the Alibaba Cloud account.
    • Instance: indicates that the alert rule applies only to the specified resource included in the specified cloud service of the Alibaba Cloud account.
    Alert Rule The name of the alert rule.
    Rule Description The content of the alert rule. This parameter defines the conditions that trigger an alert.
    Mute for The interval of resending the notification for an alert before the alert is cleared.

    An alert is triggered when the conditions of an alert rule are met. CloudMonitor does not resend an alert notification when the alert is triggered again within the mute period. CloudMonitor starts to resend alert notifications if the alert is not cleared after the mute period ends.

    Effective Period The period during which the alert rule is effective. CloudMonitor monitors the metrics and generates alerts only if the alert rule is effective.
    Notification Contact The alert groups to which alert notifications are sent.
    Notification Methods

    Email + DingTalk

    Auto Scaling If you select Auto Scaling, the specified scaling rule is triggered if an alert is generated. You must set the Region, ESS Group, and ESS Rule parameters.
    Log Service If you select Log Service, the alert message is written to Log Service if an alert is generated. You must set the Region, Project, and Logstore parameters.

    For more information about how to create a project and a Logstore, see Quick Start.

    Email Remark Optional. The custom remarks that you want to include in the alert notification email.
    HTTP WebHook The callback URL that can be accessed over the Internet. CloudMonitor sends a POST request to push an alert to the specified callback URL. Only HTTP requests are supported. For more information about how to configure alert callbacks, see Use the alert callback feature to report threshold-triggered alerts.
  5. Click Confirm.