If you need to monitor the resource usage of cloud services, we recommend that you create dynamic threshold-triggered alert rules for metrics such as CPU utilization, number of requests, traffic, duration, and consumption. If resource metrics meet specific alert conditions, alerts are triggered and CloudMonitor sends alert notifications. This way, you can identify and handle monitoring data exceptions at the earliest opportunity.
Prerequisites
You have submitted a ticket to obtain the permissions to use dynamic threshold-triggered alert rules.
Limits
Normal dynamic thresholds of a metric in a time series have the following limitations:
Data: The total amount of data generated in the last 168 hours (7 days) must be no less than the amount of data that is supposed to be generated in 48 hours.
NoteMetric data must meet the preceding requirements when it is previewed.
Time: Dynamic thresholds take effect only when the alert rules are saved for about 20 minutes.
NoteAfter dynamic thresholds are generated, the system checks whether the metric data meet the requirements and is updated every 20 minutes. If the metric data meet the requirements and is updated, new dynamic thresholds are generated.
Procedure
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the Alert Rules page, click Create Alert Rule.
In the Create Alert Rule panel, configure the parameters. The following table describes the parameters.
Example: Set a dynamic threshold-triggered alert rule for the maximum CPU utilization per minute of an ECS instance. If the metric exceeds the upper boundary for three consecutive cycles, CloudMonitor sends a Warn-level alert notification to all alert contacts in the alert contact group Alarm_Group.
Select Elastic Compute Service (ECS) from the Product drop-down list. Set the Resource Range parameter to Instances. Then, select one or more ECS instances from the Associated Resources drop-down list.
Configure rule conditions.
Click Add Rule.
In the Config Rule Description panel, configure the Alert Rule parameter and set the Metric Type parameter to Dynamic Threshold tab. Choose
from the Metric drop-down list. Specify Maximum Value and 1 Minutes in the Statistics And Periods section. Set the Alert Condition parameter to Above the Upper Boundary, the Alert Sensitivity parameter to High, and the Trigger Condition parameter to 3 Consecutive Cycles (1 Cycle = 1 Minutes).The higher the alert sensitivity is, the more frequently alerts are generated. Three alert sensitivity levels are available:
High sensitivity: The upper and lower boundaries are close to the actual values. A small fluctuation can trigger an alert condition, and a large number of alerts can be generated. High sensitivity is suitable for core metrics of core business.
Medium sensitivity: The upper and lower boundaries are moderately close to the actual values. A moderate number of alerts can be generated. Medium sensitivity is suitable for common metrics of important business.
Low sensitivity: The upper and lower boundaries are significantly different from the actual values. A large fluctuation can trigger an alert condition, and a small number of alerts can be generated. Low sensitivity is suitable for common metrics of common business.
Click OK.
Select Alarm_Group for Alert Contact Group. Retain the default settings of other parameters.
NoteFor more information about alert rule parameters, see Parameters of an alert rule.
Click Confirm.
View the details about the created dynamic threshold-triggered alert rule.
On the Alert Rules page, select Dynamic Threshold from the Rule Type drop-down list to query all dynamic thresholds. Then, find the alert rule that you created and click More in the Actions column.
On the More tab of the Alert Rule Detail panel, you can view the dynamic threshold chart of the ECS instance in the Dynamic Threshold Graph section.