Create an alert contact or an alert contact group
Alert contact groups determine who receives alert notifications. Create contacts, add them to groups, and assign groups to alert rules.
Background
By default, Cloud Monitor adds your Alibaba Cloud account as an alert contact and automatically creates an alert contact group for it.
The storage and notification services for alert contact information are deployed in the Chinese mainland.
Send alert notifications to RAM users only
By default, a Cloud Monitor alert rule is associated with the default alert contact group, which contains your Alibaba Cloud account as an alert contact. As a result, alert notifications are sent to the Alibaba Cloud account. To send alert notifications only to RAM users, complete the following steps.
-
Log on to the Cloud Monitor console.
Click the Alert Contact Group tab and check the members of the default alert contact group that Cloud Monitor created automatically. Confirm that the group contains your Alibaba Cloud account as an alert contact.
Click Create Alert Contact Group to create an alert contact group that contains only RAM users. Add only the alert contacts that correspond to RAM users, and do not add the Alibaba Cloud account. For instructions, see Create an alert contact.
In the left-side navigation pane, choose Alerts > Alert Rules. Check your existing alert rules one by one and change the alert contact group of each rule from the default group to the RAM-user-only alert contact group. Existing alert rules are not switched automatically. If you do not update a rule, the rule continues to send notifications to the Alibaba Cloud account.
When you create an alert rule, select the RAM-user-only alert contact group from the Alert Contact Group drop-down list. Do not select the default alert contact group.
Creating a RAM-user-only alert contact group does not stop the Alibaba Cloud account from receiving alert notifications. You must also switch every existing alert rule from the default alert contact group to the RAM-user-only alert contact group.
Create an alert contact
An alert contact can belong to multiple contact groups.
-
Log on to the Cloud Monitor console.
In the left-side navigation pane, choose .
On the Alert Contacts tab, click Create Alert Contact.
In the Set Alert Contact panel, configure the following parameters.
Parameter
Description
Name
Must be 2–40 characters, starting with a letter or Chinese character. Supports letters, Chinese characters, digits, periods (.), and underscores (_).
Region for alert notification service
Alert contact details, such as name and email address, are stored and processed in the selected region.
Phone
Text messages are sent only to Chinese mainland phone numbers (+86).
Email address
The email address used for alert notifications.
Description
A custom description for the alert contact.
DingTalk | Lark | WeCom | Slack Webhook(http|https)
The webhook URL. Must start with
http://orhttps://.NoteTo test the webhook's connectivity, click Test next to the URL.
In the Webhook Test panel, use the status code and test results to verify the webhook connectivity.
You can also specify the callback template type and Language, and then click Test again to view the test results.
Language of alert notifications
Defaults to Automatic. Cloud Monitor matches the notification language to your Alibaba Cloud account language.
Verify the information and click Confirm.
NoteCloud Monitor phone alerts are built-in — no additional channel configuration is required. To receive phone alerts, ensure the following:
The alert contact has a valid phone number and has been added to an alert contact group.
When creating alert rules (for products such as ECS or EMR), select the alert contact group and set the alert severity to Critical. Cloud Monitor then automatically sends notifications by phone, text message, email, and webhook.
(Optional) Activate the email address and phone number.
If you specify an email address and phone number, their status is Pending Activation by default. The contact must click the activation links in the email and text message within 24 hours to receive alert notifications. After activation, the email address and phone number appear in the contact list.
Create an alert contact group
An alert contact group contains one or more alert contacts.
-
Log on to the Cloud Monitor 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 group name and select the alert contacts to add.
Click Confirm.
Add multiple alert contacts to a group
Add multiple alert contacts to a contact group at once.
-
Log on to the Cloud Monitor console.
In the left-side navigation pane, choose .
On the Alert Contacts tab, select the desired alert contacts.
Click Add to Contact Group.
In the Add to Contact Group dialog box, select an alert contact group.
Click OK.
Weekly report subscription
Weekly report subscription is currently supported only through OpenAPI operations. The console does not provide a UI entry point for this feature.
Enable or disable weekly report subscription
Call the PutContactGroup operation and set the EnableSubscribed parameter:
EnableSubscribed=true: enables weekly report subscription.EnableSubscribed=false: disables weekly report subscription.
CLI examples:
# Enable weekly report subscription
aliyun cms PutContactGroup --ContactGroupName "GroupName" --EnableSubscribed true
# Disable weekly report subscription
aliyun cms PutContactGroup --ContactGroupName "GroupName" --EnableSubscribed falseQuery the weekly report subscription status
Call the DescribeContactGroupList operation. The response includes the following fields:
EnableSubscribed: indicates whether weekly report subscription is enabled.EnabledWeeklyReport: indicates whether the weekly report feature is enabled.
CLI example:
aliyun cms DescribeContactGroupListWeekly reports are sent periodically to the email addresses of the contacts in the alert contact group. Make sure the contacts' email addresses are configured correctly.
FAQ
Q: What do I do if I receive the "contact not exists" error or cannot save my email address when activating an alert contact?
Issue 1: "contact not exists" error
This error usually means the contact was not created successfully or your changes were not saved:
Return to the contact creation or editing page, fill in all required fields, and click Confirm to submit.
Click the activation link in the email or text message within 24 hours of submission.
If the error persists, delete the contact and recreate it. Ensure your network connection is stable and avoid refreshing or navigating away from the page during the process.
Issue 2: Email address cannot be saved or activation fails
Use Google Chrome to perform this operation.
Verify that the email address format is correct, the email account is accessible, and the address is not already registered under another contact.
If the system indicates that the email address already exists, complete the activation process for that email address first, and then save or modify the contact.