Alibaba Cloud Cloud Monitor
Alibaba Cloud CloudMonitor is a service that monitors Alibaba Cloud resources and internet applications. This topic describes how to integrate Alibaba Cloud CloudMonitor with Event Center to centrally manage alerts and events.
How to integrate Alibaba Cloud Cloud Monitor?
You can integrate CloudMonitor in one of the following three ways:
Integrate by configuring the alert callback for a single rule
Integrate by configuring a webhook for an alert contact
Integrate by configuring a contact group or template for an application group
Method 1: Integrate by configuring the alert callback for a single rule
Step 1: Find Alibaba Cloud Cloud Monitor
Go to the integration configuration page of Event Center, find Alibaba Cloud CloudMonitor, and follow the on-screen instructions to integrate it.
Step 2: Create an alert rule
On the Alert Rules page of the CloudMonitor console, create an alert rule. For more information, see Create an alert rule.
Step 3: Configure the alert callback or URL callback address
To integrate, configure the alert callback URL for threshold-based alerts or the URL callback address for event-based alerts. Enter the URL from Event Center:
https://public-alert.aliyuncs.com/event/aliyun/monitor/{integration_key}NoteTo obtain the alert callback URL, go to the Event Center console and choose Integration Configuration > Event Data Source > Alibaba Cloud Cloud Monitor. Click View Details and copy the URL.
After entering the alert callback URL, click Test to view the result.
Step 4: Confirm the integration
After you complete the configuration, click Confirm Integration.
Step 5: Verify the integration
In the Alibaba Cloud CloudMonitor console, configure alerting, subscribe to rules, and trigger an alert. Then, go to the Integration Configuration page in the Event Center console. If the status of Alibaba Cloud CloudMonitor is Alerts Received, the integration is successful.
Method 2: Integrate by configuring a webhook for an alert contact
Step 1: Find Alibaba Cloud Cloud Monitor
Go to the integration configuration page of Event Center, find Alibaba Cloud CloudMonitor, and follow the on-screen instructions to integrate it.
Step 2: Create an alert contact
On the Alert Contacts page of the Cloud Monitor console, click Create Contact.
Configure the alert callback or URL callback address.
To integrate, configure the alert callback URL for threshold-based alerts or the URL callback address for event-based alerts. Enter the URL from Event Center:
https://public-alert.aliyuncs.com/event/aliyun/monitor/{integration_key}NoteTo obtain the alert callback URL, go to the Event Center console. Choose Integration Configuration > Event Data Source > Alibaba Cloud Cloud Monitor. Click View Details and copy the URL.
After entering the webhook address, click Test.
Step 3: Create an alert contact group and subscribe to notifications
On the Alert Contact Group page of the Cloud Monitor console, click Create Contact Group. In the contact group, select the contact that is configured with the Event Center webhook address.
For the alert rule's notification method, select the new alert contact group.
Step 4: Confirm the integration
After completing the configuration, click Confirm Integration.
Step 5: Verify the integration
In the Alibaba Cloud CloudMonitor console, configure alerting, subscribe to rules, and trigger an alert. Then, go to the Integration Configuration page in the Event Center console. If the status of Alibaba Cloud CloudMonitor is Alerts Received, the integration is successful.
Method 3: Integrate by configuring a contact group or template for an application group
Step 1: Find Alibaba Cloud Cloud Monitor
Go to the integration configuration page of Event Center, find Alibaba Cloud CloudMonitor, and follow the on-screen instructions to integrate it.
Step 2: Add an alert contact group to an application group
Go to the Create Application Group page in the CloudMonitor console. When you create the application group, select the alert contact group that you created.
Step 3: Configure an alert template
On the Alert Template page, create an alert template.
Apply the alert template to the application group.
Configure the webhook address.
To integrate, configure the alert callback URL for threshold-based alerts or the URL callback address for event-based alerts. Enter the URL from Event Center:
https://public-alert.aliyuncs.com/event/aliyun/monitor/{integration_key}NoteTo obtain the alert callback URL, go to the Event Center console. Choose Integration Configuration > Event Data Source > Alibaba Cloud Cloud Monitor. Click View Details and copy the URL.
After you enter the webhook address, click Test.
Step 4: Confirm the integration
After completing the configuration, click Confirm Integration.
Step 5: Verify the integration
In the Alibaba Cloud CloudMonitor console, configure alerting, subscribe to rules, and trigger an alert. Then, go to the Integration Configuration page in the Event Center console. If the status of Alibaba Cloud CloudMonitor is Alerts Received, the integration is successful.
Related topics
After you configure the integration, you can also configure routing rules.