Enable initiative alerts or configure custom alert rules for an ECS instance to detect exceptions early.
Background
The Monitoring tab of an ECS instance details page provides two alerting options:
-
After you enable the initiative alert feature, alert rules for CPU utilization, disk usage, memory usage, and network bandwidth utilization are created for all ECS instances in your Alibaba Cloud account. See Enable the initiative alert feature.
-
Custom alert rules take effect only on the specified ECS instance. See Configure custom alert rules.
NoteYou can manage alert rules or use more monitoring and alerting features in the CloudMonitor console. See What is CloudMonitor.
Enable the initiative alert feature
After you enable the initiative alert feature, alert rules for key metrics take effect on all ECS instances in your Alibaba Cloud account.
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
-
Find the target ECS instance and click its instance ID.
-
Click the Monitoring tab > Alert Rule tab, and then click Initiative Alert.
-
In the Initiative Alert panel, turn on Initiative Alert.
After enabling, view the alert rules in the Rule Details section. You can also:
-
Disable an alert rule: Find the rule and click Disable in the Actions column. In the confirmation message, click Disable.
-
Delete an alert rule: Find the rule and click Delete in the Actions column. In the Delete Alert Rule message, click Delete.
-
Configure custom alert rules
Custom alert rules apply only to the specified ECS instance and take effect immediately after creation.
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
-
Find the target ECS instance and click its instance ID.
-
Click the Monitoring tab > Alert Rule tab, and then click Create Alert Rules.
-
In the Create Alert Rules panel, configure the alert rules and click OK.
The following table describes the parameters.
Parameter
Description
Rule Description
The name and content of the alert rules.
Click Add Rule, select a metric type, configure the parameters in the Configure Rule Description panel, and click OK.
Note-
The rule content specifies the alert trigger condition. For example, if the average CPU utilization is greater than or equal to 90% for three consecutive cycles in 5 minutes, an alert is triggered. CloudMonitor checks the condition only three times every 5 minutes.
-
For ECS metrics available for alert rules, see Operating system monitoring.
Mute For
The interval at which CloudMonitor resends an alert notification if the triggering issue persists.
Effective Time
The period during which the alert rules are in effect. CloudMonitor monitors metrics and generates alerts only within this period. If not specified, the rules take effect throughout the day.
Alert Contact Group
The contacts or contact groups to receive alert notifications. See Create an alert contact or contact group.
Alert Callback
The callback URL accessible over the Internet. CloudMonitor pushes alert notifications to this URL by sending HTTP POST requests. Only the HTTP protocol is supported.
-
-
(Optional) In the alert rule list, find a custom alert rule and click buttons in the Actions column to perform operations on the rule, such as modifying or copying the rule.

References
-
Enable the initiative alert feature in the CloudMonitor console to quickly build an alert system and detect key metric exceptions early. See Enable the initiative alert feature.
-
To monitor cloud resource utilization, Create an alert rule in the CloudMonitor console.