You can create threshold-triggered alert rules to monitor the usage and operating status of cloud service resources. When a metric value reaches the specified static or dynamic threshold, CloudMonitor sends an alert notification to you. This way, you can be informed of exceptions and handle them at the earliest opportunity.

Background information

The following table describes the two types of threshold supported by threshold-triggered alert rules.
Threshold type Description Remarks
Static thresholds After you set a static threshold for a metric, CloudMonitor sends an alert notification to you when the metric value reaches the static threshold. N/A
Dynamic thresholds Dynamic thresholds are automatically calculated by intelligent algorithms in CloudMonitor based on historical monitoring data. The real-time dynamic thresholds are provided with the consideration of alert sensitivity.

You can create dynamic threshold-triggered alert rules to prevent false alerts caused by periodic monitoring data changes. CloudMonitor sends you alert notifications based on dynamic thresholds.

  • You can create up to five dynamic threshold-triggered alert rules within each Alibaba Cloud account.
  • A dynamic threshold-triggered alert rule applies only to a single resource.
  • A dynamic threshold-triggered alert rule takes effect in one to three hours after it is created.

Create a static threshold-triggered alert rule

  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.

Create a dynamic threshold-triggered alert rule

  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 Dynamic threshold and set the parameters that are described in the following table.
    Parameter Description
    Product The name of the service monitored by CloudMonitor.
    Resource Range The resources to which the alert rule applies. A dynamic threshold-triggered alert rule applies only to a single resource.
    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.
    Alert sensitivity The sensitivity level of the alert. Default value: Low. Valid values: Low, In, and High.

    The higher the alert sensitivity level is, the more frequently the alert is generated.

    Historical data used by default (days) The number of days of the historical monitoring data that CloudMonitor uses to calculate the dynamic thresholds. Unit: days. Valid values: 3 to 14. Default value: 14.
    For example, you can set this parameter to 14. Before you create a dynamic threshold-triggered alert rule, make sure that the metric to be monitored has monitoring data within the last 14 days. If no monitoring data is available in one of the last 14 days, the calculation fails, and CloudMonitor does not send an alert notification to you.
    Note To change the default value of the Historical data used by default (days) parameter, click Alarm configuration.
    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.