CloudMonitor manages system events and custom events of Alibaba Cloud services in a centralized manner. You can configure alert rules for custom events of Alibaba Cloud services. This allows you to receive alert notifications at the earliest opportunity when exceptions occur. Then, you can efficiently analyze and troubleshoot issues.
Background information
The system event-triggered alert rule feature of the old version is no longer upgraded and will be phased out. We recommend that you use the new event subscription feature. For more information about how to create an event subscription policy, see Create a subscription policy.
The following table describes the event types and Alibaba Cloud services that are supported by CloudMonitor.
Event type | Description | Supported Alibaba Cloud service |
System event | CloudMonitor provides a centralized platform for you to query system events that are generated for different Alibaba Cloud services. This allows you to track the use of Alibaba Cloud services and receive alert notifications at the earliest opportunity. | |
Custom event | You can call an API operation of CloudMonitor to report the exception events that occur in your Alibaba Cloud services to CloudMonitor. This allows you to track the use of Alibaba Cloud services and receive alert notifications at the earliest opportunity. | All Alibaba Cloud services supported by CloudMonitor |
Create a custom event-triggered alert rule
Prerequisites: An application group is created and resources are added to the application group if you need to apply event-triggered alert rules to instances by application group. For more information, see Create an application group and Add resources to the application group.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Custom Event page, click the Event-triggered Alert Rules tab.
Click Create Alert Rule.
In the Create/Modify Event-triggered Alert Rule panel, configure the parameters of the custom event-triggered alert rule.
Table 1. Parameters of a custom event-triggered alert rule
Parameter
Description
Alert Rule Name
The name of the event-triggered alert rule.
Application Groups
CloudMonitor sends an alert notification only when the specified custom event occurs on a resource in the application group.
Event Name
The name of the custom event.
Rule Description
The details of the event-triggered alert rule. An alert notification is sent only if the alert is generated for the specified number of times within the specified period of time. The period can be 1, 2, 3, 4, or 5 minutes.
Notification Methods
The notification methods and severity level of the event-triggered alert rule. Valid values:
Email + Webhook(CRITICAL)
Email + Webhook(WARN)
Email + Webhook(INFO)
Contact Group
The alert contact group that receives alert notifications.
Alert Callback
The callback URL and request method. Enter a callback URL that can be accessed over the Internet. CloudMonitor sends HTTP POST or GET requests to push alert notifications to the specified URL. You can enter only an HTTP URL. For information about how to configure callback URLs, see Use the alert callback feature to send notifications about threshold-triggered alerts.
To test the connectivity of an alert callback URL, perform the following steps:
Click Test next to the callback URL.
In the Webhook Test panel, you can check and troubleshoot the connectivity of the alert callback URL based on the returned status code and test result details.
NoteTo obtain the details of the test result, configure the Test Template Type and Language parameters and click Test.
Click Close.
Click OK.
Modify a custom event-triggered alert rule
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Custom Event page, click the Event-triggered Alert Rules tab.
Find the alert rule that you want to modify and click Modify in the Actions column.
In the Create/Modify Event-triggered Alert Rule panel, configure the parameters of the custom event-triggered alert rule.
For more information about the parameters, see Parameters of a custom event-triggered alert rule.
Click OK.
Disable custom event-triggered alert rules
By default, Enable Status is for a newly created custom event-triggered alert rule. If you do not need to receive notifications that are generated based on a custom event-triggered alert rule, you can disable the alert rule. If you enable the alert rule again, CloudMonitor resumes sending alert notifications based on the alert rule.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Custom Event page, click the Event-triggered Alert Rules tab.
Disable custom event-triggered alert rules
Disable a single alert rule
Find the alert rule that you want to disable, click in the Actions column, and then click Disable.
In the message that appears, click Confirm.
Disable multiple alert rules at a time
Select the alert rules that you want to disable and click Disable in the lower-left corner.
In the message that appears, click Confirm.
Enable custom event-triggered alert rules
You can enable a custom event-trigger alert rule whose Enable Status is .
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Custom Event page, click the Event-triggered Alert Rules tab.
Enable custom event-triggered alert rules.
Enable a single alert rule
Find the alert rule that you want to enable, click the icon in the Actions column, and then click Enable.
In the message that appears, click Confirm.
Enable multiple alert rules at a time
Select the alert rules that you want to enable and click Enable in the lower-left corner.
In the message that appears, click Confirm.
Delete custom event-triggered alert rules
After you delete a custom event-triggered alert rule, CloudMonitor no longer send the related alert notifications to you.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Custom Event page, click the Event-triggered Alert Rules tab.
Delete custom event-triggered alert rules.
Delete a single alert rule
Find the alert rule that you want to delete, click the icon in the Actions column, and then click Delete.
In the message that appears, click Confirm.
Delete multiple alert rules at a time
Select the alert rules that you want to delete and click Delete in the lower-left corner.
In the message that appears, click Confirm.