You need to enable JavaScript to run this app.
Cloud Monitor

Cloud Monitor

Copy page
Download PDF
Alert policies
Creating an alert policy
Copy page
Download PDF
Creating an alert policy
If you need to monitor the data status of a specific cloud service resource, you can create a Cloud Monitor alert policy. When the data of the monitored cloud service resource meets the alert trigger condition, the system will push an alert notification through your specified method, which helps you identify resources with abnormal data at the earliest opportunity.​
Prerequisites​
You have selected an appropriate notification method and created a matching notification policy. For more details, see Creating notification policies.​
Limits​
General limit​
  • When you manually select resources, if you select all resources, the number of resources is not limited.​
  • When you manually select resources, if you select part of resources, the number of resources is limited by the following rules:​
  • Up to 1,000 resources of the same type can be added to an alert policy.​
  • Up to 5,000 resources of all types can be added to an alert policy.​
  • When you select resources by resource name, project and label, up to 1000 resources can be matched.​
Select resources by project​
The following cloud services allow you to select resources by project.​
​
Service name​
Namespace​
NAT Gateway​
VCM_NAT​
Classic Load Balancer (CLB)​
VCM_CLB​
EIP​
VCM_EIP​
Bandwidth Package​
VCM_BandwidthPackage​
TR​
VCM_TransitRouter​
Transit Router (TR) Bandwidth Package​
VCM_TransitRouterBandwidthPackage​
RDS for MySQL​
VCM_RDS_MySQL​
Cache for Redis - Community Edition​
VCM_Redis​
Elastic Compute Service (ECS)​
VCM_ECS​
EBS​
VCM_EBS​
Cloud Enterprise Network (CEN)​
VCM_CEN​
Application Load Balancer (ALB)​
VCM_ALB​
Torch Object Storage (TOS)​
VCM_TOS​
RDS for PostgreSQL​
VCM_RDS_PostgreSQL​
Document Database for MongoDB - replica set​
VCM_MongoDB_Replica​
Document Database for MongoDB - sharding cluster​
VCM_MongoDB_Sharded_Cluster​
​
Select resources by label​
The following cloud services allow you to select resources by label.​
​
Service name​
Namespace​
NAT Gateway​
VCM_NAT​
Classic Load Balancer (CLB)​
VCM_CLB​
EIP​
VCM_EIP​
Bandwidth Package​
VCM_BandwidthPackage​
Cloud Enterprise Network (CEN)​
VCM_CEN​
Direct Connect (DC) - DC gateway​
VCM_DirectConnectGateway​
DC - virtual interface​
VCM_DirectConnectVIF​
Cache for Redis Community Edition​
VCM_Redis​
Elastic Compute Service (ECS)​
VCM_ECS​
EBS​
VCM_EBS​
RDS for MySQL​
VCM_RDS_MySQL​
Application Load Balancer (ALB)​
VCM_ALB​
Torch Object Storage (TOS)​
VCM_TOS​
RDS for PostgreSQL​
VCM_RDS_PostgreSQL​
Document Database for MongoDB - replica set​
VCM_MongoDB_Replica​
Document Database for MongoDB - sharding cluster​
VCM_MongoDB_Sharded_Cluster​
​
Procedure​
  1. Log in to the Cloud Monitor console. ​
  1. In the left navigation bar, click Alert Center > alert policy. Click Create alert policy to configure the alert policy details.​
tip​
Available regions and subnamespaces vary based on the cloud service type. The options displayed in the console shall prevail.​
  • ​
    Category​
    Parameter​
    Description​
    Basic information​
    Name​
    Specify a name for the Cloud Monitor alert rule as a unique identifier. Duplicate names are not allowed.​
    warning​
    Alert notifications sent through SMS messages may fail to be delivered if certain characters are used in the name. For more details, see Template review specifications.​
    Alert object​
    Resource type​
    Specify the type of cloud products under monitoring. Supported cloud service types displayed in the console shall prevail.​
    ​
    Subnamespace​
    Specify the resource subnamespace of the monitored cloud service.​
    ​
    Selection method​
    • Manually select: Manually select resources.​
    • Resource name: Match resources by resource name.​
    ​
    Region​
    If you set the Selection method parameter to Manual selection, Resource name, Project, or Label, you can select one or more regions to which the monitored resources are deployed.​
    ​
    Resource group​
    If you set the Selection method parameter to Object Group, you can select a created Object Group.​
    ​
    Resource​
    If you set the Selection method parameter to Manual selection, you can specify a resource range to which the alert policy applies, which means only resources within the resource range can be monitored.​
    warning​
    • If you select all resources, the number of resources is not limited.​
    • If you select part of resources, the number of resources is limited by the following rules:​
    • Up to 1,000 resources of the same type can be added to an alert policy.​
    • Up to 5,000 resources of all types can be added to an alert policy.​
    • All: The alarm strategy is configured for all resources matching the specified resource type, region, and subnamespace within the current account.​
    • After selection, newly created resources that meet these conditions will be automatically added to the alert policy.​
    • Part: You need to manually select one or more resources.​
    • After selection, the alert policy is configured only for these resources.​
    ​
    Resource name​
    If you set the Selection method parameter to Resource name, you can specify a resource range to which the alert policy applies, which means only resources within the resource range can be monitored.​
    warning​
    • You can add multiple matching rules. Up to 10 matching rules can be added.​
    • The resource name can be up to 100 characters in length.​
    • You can select the relationship between matching rules, which include arbitrary satisfaction and All satisfied.​
    • If you select Specific resources, you can match resources by resource name. The matching rules include Prefix match, Suffix match, Contain, Not contain, Equal to, and Not equal to.​
    • If you set the matching rule to Contain, Not contain, Prefix match, or Suffix match, you can enter one resource name.​
    • If you set the matching rule to Equal to or Not equal to, you can select multiple resources and must specify the Region parameter.​
    ​
    Project​
    If you set the Selection method parameter to Project, you can specify a resource range to which the alert policy applies, which means only resources within the resource range can be monitored. For supported cloud services, refer to the Select resources by project section of this topic.​
    ​
    Tags​
    If you set the Selection method parameter to Label, you can specify a resource range to which the alert policy applies, which means only resources within the resource range can be monitored.​
    warning​
    • You can add multiple matching rules. Up to 10 matching rules can be added.​
    • The tag value can be up to 50 characters in length.​
    • You can select the relationship between matching rules, which include arbitrary satisfaction and All satisfied.​
    • You can select a label key and filter resources with the label key by the following rules, including Exists and the prefix matches, Exists and the suffix matches, Exists and contains, Exists and does not contain, Exists and is equal to, Exists, but not equal to, Exist, and Does not exist.​
    • If you set the matching rule to Exist or Does not exist, all label values of the corresponding label keys are included, and you cannot enter a label value.​
    • If you set the matching rule to Exists and is equal to or Exists, but not equal to, you can select multiple label values.​
    • If you set the matching rule to Exists and contains, Exists and does not contain, Exists and the prefix matches, or Exists and the suffix matches, you can enter one label value.​
    Alert rules​
    Preset trigger condition​
    ​
    The preset alert trigger conditions. Click Use preset trigger conditions and the system will automatically populate the metric type and trigger condition. You can modify, delete, and add automatically generated trigger conditions.​
    tip​
    If a certain dimension of a cloud product does not have preset trigger conditions, this button will be grayed out and trigger conditions cannot be generated automatically.​
    ​
    Metric type​
    Select the metric type. Available options: Single-metric and Multi-metric. If you need to monitor multiple metrics of a resource, you can select Multiple-metrics.​
    ​
    Trigger condition​
    ​
    The trigger condition. When the monitored resource metric reaches the trigger condition, the system will send an alert notification. The following items are included:​
    • Condition operator: When Metric type is set to Multi-metric, you can configure the relationship between multiple alert trigger conditions. Available types:​
    • All: Multiple alert trigger conditions have a logical AND relationship. This means that all conditions must be met simultaneously to trigger an alert.​
    • Any: Multiple alert trigger conditions have logical OR relationship. This means that meeting any one condition will trigger an alert.​
    • Cycles: Specify the number of cycles that must meet the alert trigger condition to trigger an alert. For example, you can configure In 1 cycles (1 cycle = 1 minute). You can also specify that N of M cycles meet the condition. For example: In 3 periods (1 cycle = 1 minute), there are 2 cycles.​
    warning​
    • If the Metric type parameter is set to Single metric, only one trigger condition can be set. When Metric type is set to Multi-metric, you can configure one or more trigger conditions, with a minimum of 1 and a maximum of 10.​
    • You can use the same metric to configure multiple trigger conditions. However, for the same alert policy, the quadruple metric name + statistical cycles + aggregation type + comparison operator must not be identical.​
    • If a rule triggers both a threshold alert and a NoData alert at the same time, two notifications will be sent.​
    • Metric name: The alert metric for a cloud service. Supported metrics vary by cloud service. For example, when monitoring an ECS instance, you can select metrics such as CPU usage and CPU idle rate.​
    • Statistical cycle: The statistical cycle of the alert metric. Valid values: Recent 1 cycles, Recent 2 cycles, Recent 3 cycles, Recent 4 cycles, Recent 5 cycles, etc.​
    • Aggregation method: The method used to aggregate the alert metric within a statistical cycle. Valid values:​
    • Average: The value calculated by averaging the raw values within the statistical cycles.​
    • Maximum: The highest value among the raw values within the statistical cycles.​
    • Minimum: The lowest value among the raw values within the statistical cycles.​
    • Comparison operator: As shown in item 6 in the figure above. The comparison operator between the alert metric value and the threshold. Available options include >, >=, <, <=, !=, =, Compare to Last Period Increase, Compare to Last Period Decrease, Compare to Last Period Increase or Decrease, Compare to The Same Period of Yesterday Increase, Compare to The Same Period of Yesterday Decrease, Compare to The Same Period of Yesterday Increase or Decrease, Compare to The Same Period of Last Week Increase, Compare to The Same Period of Last Week Decrease, and Compare to The Same Period of Last Week Increase or Decrease.​
    • Alert level: As shown in item 7 in the figure above. The alert severity level and its corresponding threshold. Different thresholds can be configured for different severity levels. Alert level options include Critical, Warning, and Notification.​
    tip​
    • For example, when the trigger condition is configured as "Average disk usage > 60%, 120 cycles (1 cycle = 1 minute)", the system checks the resource metric every 1 minute. An alert is triggered if the average disk usage of a resource exceeds 60% for 120 consecutive minutes.​
    • After you configure trigger conditions, you can click Preview or Alert test to preview and test alerts based on the trigger conditions.​
    ​
    Mute For​
    ​
    After an alert policy is triggered, if the monitored resource continuously triggers alerts, the system will periodically send alert notifications to prevent excessive notifications.​
    • You can set the alert sending cycle to 5 minutes, 10 minutes, 15 minutes, 30 minutes, 60 minutes, 3 hours, 6 hours, 12 hours, or 24 hours.​
    • The default value is 5 minutes.​
    ​
    Notify mode​
    ​
    • Rule: If any resource in an alert rule continuously exceeds the alert threshold within a notification cycle, only one alert notification is sent during that cycle.​
    • Rule and Resource: If different resources in an alert rule continuously exceed the alert thresholds within a notification cycle, an alert notification is sent separately for each resource during that cycle. If the monitored metrics are not recovered after the notification cycle ends, Cloud Monitor sends another alert notification for each resource.​
    ​
    Alert recovery notification​
    ​
    A recovery notification is sent to users after the alert is cleared. The feature is enabled by default.​
    warning​
    • For threshold alerts, if the resource generates no alert for consecutive 5 minutes, the alert is cleared.​
    • For NoData alerts, if the resource reports data for consecutive 5 minutes, the alert is cleared.​
    • If you set "Notification aggregation policy" to "Rule", one alert recovery notification is sent after the alerts for all resources are recovered.​
    • If you set "Notification aggregation policy" to "Rule and Resource", one alert recovery notification is sent each time the alerts for a resource are recovered.​
    ​
    NoData alert​
    ​
    Configure the NoData alert.​
    • Configure a trigger condition. If no data is reported for the specified resource for consecutive n cycles, a NoData alert will be triggered.​
    • Configure the level of the NoData alert. Valid values: Critical, Warning, and Notification.​
    warning​
    • You can configure 3 to 20 cycles. The default value is 10 cycles.​
    • Not all cloud service metrics support NoData alerts. "NoData alert" can be configured only when the following two conditions are met: "Dimension" in the "Alert object" section is set to "Instance" and the resource involves only one level of cloud service metrics. The actual console display shall prevail.​
    • If a rule triggers both a threshold alert and a NoData alert at the same time, two notifications will be sent.​
    • NoData alert notifications will not be sent if the corresponding resource is deleted.​
    • For example, the Resources parameter is set to All in the Alert object section. If Resource A is deleted and no data is reported for consecutive n cycles, no NoData alert will be sent.​
    Advanced Settings​
    Project​
    Specify the project to which the alert policy belongs. The default project is selected by default. For more information about projects, see Managing projects.​
    ​
    Tags​
    Click Add tag to add tags to the alert policy.​
    Alert way​
    Notification policy​
    Select an appropriate notification policy based on actual circumstances. A notification policy defines the recipients, delivery channels, and content display format for alert notifications when alerts of different levels are triggered or recovered.​
    ​
Validate results​
After the alert policy is configured, you can view and manage the created alert policy. For specific operations, see Viewing alert policies.​
Other configurations​
Preview alerts​
When you configure an alert policy, you can preview alerts for a trigger condition. You can preview monitoring charts for single and multiple metrics. You can select a specific resource and the chart will display the configured threshold and the time range during which the exceptions of the resource are detected to help you check whether the alert threshold configuration covers the exceptions of the resource.​
  1. When you configure an alert rule, click preview to preview alerts after you specify the Trigger condition parameter.​
  1. Select the target resource and query time period to preview the alerts of the specified resource during the specified time period.​
  • You can select up to 10 target resources.​
  • A dashed line in a chart indicates a configured metric threshold, as shown by the dashed lines that correspond to 80, 60, and 40 on the Y axis in the following figure.​
  • A solid line in a chart indicates the specific value of a resource metric. You can move the pointer over the solid line to view the resource name and metric threshold, as shown by the blue solid line in the following figure.​
  • A shadow in a chart indicates that alert information is generated during the corresponding time period, as shown by the blue shadow in the following figure.​
Description​
  • The alert result displayed in the alert preview image only indicates whether the resource should trigger alerts at specific time points, regardless of the configured duration.​
  • The alert preview curve is not completely synchronized with the metric curve. The value at each time point on the alert curve indicates the result under the alert trigger condition for the metric at the time point.​
  • The shadow in the chart indicates that at least one resource meets the threshold condition of the corresponding level at the current time point.​
  • If the comparison method of the trigger condition is set to periodicity-valued comparison or interval-valued comparison, the value at each time point in the preview image indicates the periodicity-valued comparison result or interval-valued comparison result.​
Test alerts​
When you configure an alert policy, you can perform an alert test for a trigger condition to verify the current configurations and the execution status of alert metrics within the specified time period. The system will display the resources of different alert states within the specified time period.​
  1. When you configure an alert rule, click preview to preview alerts after you specify the Trigger condition parameter.​
  1. Select a time point and a cycle to view the alert test charts and resources for each cycle within the specified time period, including the number of resources at different alert levels in each alert cycle. Click the alert cycle list, and the system will display the resource list and the corresponding alert levels.​
tip​
  • You can perform an alert test for up to 15 cycles. You can directly select a cycle including 5 cycles, 10 cycles, and 15 cycles.​
  • The alert test result only applies to threshold alerts and does not apply to NoData alerts.​
  • You can perform an alert test for up to 20 resources.​
​
​
​
Last updated: 2026.07.13 10:55:25