CloudMonitor manages system events and custom events of Alibaba Cloud services in a centralized manner. You can configure alert rules for the system events of Alibaba Cloud services. This allows you to receive alert notifications at the earliest opportunity if exceptions occur. Then, you can efficiently analyze and troubleshoot issues. This topic describes how to create a custom event-triggered alert rule.
Prerequisites
The monitoring data of custom events is reported. For more information, see Overview.
Background information
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 query the status of each Alibaba Cloud service 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 query the status of each Alibaba Cloud service and receive alert notifications at the earliest opportunity. | All Alibaba Cloud services supported by CloudMonitor |
Procedure
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.On the Application Groups tab, click the name of the application group.
In the left-side navigation pane of the page that appears, click Custom Event.
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.
Parameter
Description
Alert Rule Name
The name of the event-triggered alert rule.
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 a POST or GET request to push an alert notification to the specified callback URL. Only HTTP requests are supported.
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.
Related operations
After you create a custom event-triggered alert rule, you can modify, disable, enable, or delete the alert rule. On the Event-triggered Alert Rules tab, find the alert rule that you want to manage and click Modify, Disable, Enable, or Delete in the Actions column.