| | |
| | 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. |
| | Specify the type of cloud products under monitoring. Supported cloud service types displayed in the console shall prevail. |
| | Specify the resource subnamespace of the monitored cloud service. |
| | - Manually select: Manually select resources.
- Resource name: Match resources by resource name.
|
| | 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. |
| | If you set the Selection method parameter to Object Group, you can select a created Object Group. |
| | 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.
|
| | 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.
|
| | 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. |
| | 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.
|
| 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. |
| | 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. |
| | 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.
|
| | 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.
|
| | - 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.
|
| | 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.
|
| | Specify the project to which the alert policy belongs. The default project is selected by default. For more information about projects, see Managing projects. |
| | Click Add tag to add tags to the alert 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. |