All Products
Search
Document Center

CloudMonitor:Manage custom event-triggered alert rules

Last Updated:Mar 27, 2024

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

Note

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.

Appendix 2: System events

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.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Event.

  3. On the Custom Event page, click the Event-triggered Alert Rules tab.

  4. Click Create Alert Rule.

  5. 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:

    1. 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.

      Note

      To obtain the details of the test result, configure the Test Template Type and Language parameters and click Test.

    2. Click Close.

  6. Click OK.

Modify a custom event-triggered alert rule

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Event.

  3. On the Custom Event page, click the Event-triggered Alert Rules tab.

  4. Find the alert rule that you want to modify and click Modify in the Actions column.

  5. 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.

  6. 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.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Event.

  3. On the Custom Event page, click the Event-triggered Alert Rules tab.

  4. Disable custom event-triggered alert rules

    • Disable a single alert rule

      1. Find the alert rule that you want to disable, click 更多 in the Actions column, and then click Disable.

      2. In the message that appears, click Confirm.

    • Disable multiple alert rules at a time

      1. Select the alert rules that you want to disable and click Disable in the lower-left corner.

      2. 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 image.png.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Event.

  3. On the Custom Event page, click the Event-triggered Alert Rules tab.

  4. Enable custom event-triggered alert rules.

    • Enable a single alert rule

      1. Find the alert rule that you want to enable, click the 更多 icon in the Actions column, and then click Enable.

      2. In the message that appears, click Confirm.

    • Enable multiple alert rules at a time

      1. Select the alert rules that you want to enable and click Enable in the lower-left corner.

      2. 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.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Event.

  3. On the Custom Event page, click the Event-triggered Alert Rules tab.

  4. Delete custom event-triggered alert rules.

    • Delete a single alert rule

      1. Find the alert rule that you want to delete, click the 更多 icon in the Actions column, and then click Delete.

      2. In the message that appears, click Confirm.

    • Delete multiple alert rules at a time

      1. Select the alert rules that you want to delete and click Delete in the lower-left corner.

      2. In the message that appears, click Confirm.