You can use alert rules to specify how CloudMonitor checks monitoring data and when
CloudMonitor sends alert notifications. After you configure alert rules for specific
metrics, you can receive alert notifications immediately after exceptions occur and
handle the exceptions at the earliest opportunity.
Background information
- You can specify a mute period such as 24 hours for an alert rule. If the alert rule
is not triggered as expected, CloudMonitor sends only one alert notification within
the mute period. This prevents an excessive number of alert notifications from being
sent in a short period of time.
- By default, CloudMonitor automatically creates an alert contact group and adds your
Alibaba Cloud account as an alert contact to the alert contact group.
Create an alert contact
An alert contact can be added to multiple alert contact groups.
- Log on to the CloudMonitor console.
- In the left-side navigation pane, choose .
- On the Alert Contacts tab, click Create Alert Contact.
- In the Set Alert Contact panel, enter the name, email address, and DingTalk chatbot of the alert contact, and make sure that the Alert Notification Information Language parameter is set to the default value Automatic.
Note Automatic indicates that CloudMonitor automatically selects the language of alert notifications
based on the language that you use to create your Alibaba Cloud account.
- Verify the parameters and click OK.
- Optional. Activate the email address and mobile phone number of the alert contact.
By default, the email address and mobile phone number of the alert contact are in
the Pending Activation state. After the alert contact receives an email or a text message that contains
the activation link, the alert contact must activate the email address and mobile
phone number within 24 hours. Otherwise, the alert contact cannot receive alert notifications.
After the email address and mobile phone number are activated, you can view the email
address and mobile phone number in the alert contact list.
Create an alert contact group
An alert contact group can contain one or more alert contacts.
- Log on to the CloudMonitor console.
- In the left-side navigation pane, choose .
- Click the Alert Contact Group tab.
- On the Alert Contact Group tab, click Create Alert Contact Group.
- In the Create Alert Contact Group panel, enter a name for the alert contact group and add alert contacts to the alert
contact group.
- Click Confirm.
Add multiple alert contacts to an alert contact group at a time
- Log on to the CloudMonitor console.
- In the left-side navigation pane, choose .
- On the Alert Contacts tab, click the check boxes in front of the alert contacts.
- Click Add to Contact Group.
- In the Confirm dialog box, select the alert contact group.
- Click OK.
Create an alert rule
- 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, set the parameters. The following table describes the parameters.
Parameter |
Description |
Product |
The name of the Alibaba Cloud service that can be monitored by CloudMonitor. Example:
RDS-DB.
|
Resource Range |
The range of the resources to which the alert rule is applied. Valid values:
- All Resources: The alert rule applies to all resources of the specified cloud service.
- Application Group: The alert rule applies to all resources in the specified application group of the
specified cloud service.
- Instances: The alert rule applies to the specified resources of the specified cloud service.
|
Rule Description |
The content of the alert rule. The parameters in this section specify the conditions
that trigger an alert. To configure the content of the alert rule, perform the following
steps:
- Click Add Rules.
- In the Add Rule Description panel, specify the rule name, metric type, metrics, thresholds, and alert level.
- Click OK.
|
Mute For |
The interval at which CloudMonitor sends alert notifications until the alert that
is triggered based on the alert rule is cleared. Valid values: 5 min, 15 min, 30 min,
60 min, 3 h, 6 h, 12 h, and 24 h.
An alert is triggered when the conditions of an alert rule are met. CloudMonitor does
not resend an alert notification if the alert is triggered within the mute period.
If the alert is not cleared after the mute period ends, CloudMonitor resends alert
notifications.
Note You can click Advanced settings to set this parameter.
|
Effective Time |
The period of time during which the alert rule is effective. The system monitors the
metrics and generates alerts only during this period.
Note You can click Advanced settings to set this parameter.
|
Alert Contact Group |
The alert contact group to which alert notifications are sent.
The alert notifications of the application group are sent to the alert contacts that
belong to the alert contact group. An alert contact group can contain one or more
alert contacts.
For more information about how to create an alert contact and an alert contact group,
see Create an alert contact or alert contact group.
|
Alert Callback |
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 send notifications about threshold-triggered alerts.
|
Auto Scaling |
If you turn on Auto Scaling, the specified scaling rule is enabled if an alert is triggered. You must set the
Region, ESS Group, and ESS Rule parameters.
|
Log Service |
If you turn on Log Service, the alert information is written to Log Service if an alert is triggered. You must
set the Region, ProjectName, and Logstore parameters.
For more information about how to create a project and a Logstore, see Getting Started.
|
Message Service - topic |
If you turn on Message Service - topic, the alert information is written to Message Service if an alert is triggered. You
must set the Region and topicName parameters.
For more information about how to create a topic, see Create a topic.
|
No data alarm processing method |
The method that is used to handle alerts when no monitoring data is found. Default
value: Do not do anything. Valid values:
- Do not do anything
- Send no data alarm
- Treated as normal
|
- Click OK.