All Products
Search
Document Center

CloudMonitor:Manage system event-triggered alert rules (old)

Last Updated:Feb 26, 2024

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.

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 system 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 Event Center > System Event.

  3. On the Event Monitoring tab, click Save as Alert Rule.

  4. In the Create/Modify Event-triggered Alert Rule panel, configure the parameters of the system event-triggered alert rule.

    Table 1. Parameters of a system event-triggered alert rule

    Section

    Parameter

    Description

    Basic Info

    Alert Rule Name

    The name of the event-triggered alert rule.

    Event-triggered Alert Rules

    Product Type

    The Alibaba Cloud service to which the event-triggered alert rule is applied. For more information about the Alibaba Cloud services that are supported by CloudMonitor, see Appendix 2: System events.

    Event Type

    The type of the event that triggers alerts. For information about the types of events that are supported by each Alibaba Cloud service, see Appendix 2: System events.

    Event Level

    The severity level of the event that triggers alerts. For more information about the levels of the events that are supported by each Alibaba Cloud service, see Appendix 2: System events.

    Event Name

    The name of the event that triggers alerts. For more information about the names of the events that are supported by each Alibaba Cloud service, see Appendix 2: System events.

    Keyword Filtering

    The keywords that are used to filter the alert rule. Valid values:

    • Contains any of the keywords: If the alert rule contains any one of the specified keywords, CloudMonitor sends an alert notification.

    • Does not contain any of the keywords: If the alert rule does not contain any one of the specified keywords, CloudMonitor sends an alert notification.

    Note

    For more information about how to view the content of an event, see View system events.

    SQL Filter

    The SQL statement that is used to filter the alert rule.

    You can use the and and or operators. For example, if you set this parameter to Warn and i-hp368focau7dp0hw****, CloudMonitor sends alert notifications only when the event content contains the instance i-hp368focau7dp0hw**** and the alert level Warn.

    Resource Range

    The range of the resources to which the event-triggered alert rule is applied. Valid values:

    • All Resources: The event-triggered alert rule is applied to all resources of the cloud service.

    • Application Groups: The event-triggered alert rule is applied to the cloud services in the specified application group. In this case, you must select an application group.

    Notification Method

    Note

    Select at least one alert notification method.

    Alert Notification

    CloudMonitor directly sends notifications of event-triggered alerts to the specified alert contact group. You must configure the following parameters:

    • Alert Contact Group: The alert contact group to which the notifications of event-triggered alerts are sent.

    • Notification Method: The severity level of event-triggered alerts and the corresponding notification methods. Valid values:

      • Critical (Email + Webhook)

      • Warning (Email +Webhook)

      • Info (Email +Webhook)

    Message Service - Queue

    The Message Service (MNS) queue to which event-triggered alerts are delivered.

    Function Compute

    The Function Compute function to which event-triggered alerts are delivered.

    URL Callback

    The callback URL that can be accessed over the Internet. CloudMonitor sends POST or GET requests to push alert notifications to the specified URL. You can enter only an HTTP URL. For more information about how to configure alert callbacks, see Configure callbacks for system event-triggered alerts (old).

    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.

    Log Service

    The Simple Log Service Logstore to which event-triggered alerts are delivered.

    Mute For

    The interval at which CloudMonitor resends alert notifications before an alert is cleared. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.

    If a metric value reaches the threshold, CloudMonitor sends an alert notification. If the metric value reaches the threshold again within the mute period, CloudMonitor does not resend an alert notification. If the alert is not cleared after the mute period ends, CloudMonitor resends an alert notification.

    For example, if the Mute For parameter is set to 12 Hours and the alert is not cleared, CloudMonitor resends an alert notification after 12 hours.

  5. Click OK.

Test a system event-triggered alert rule

After you create a system event-triggered alert rule, you can test the alert rule. You can check whether alert notifications can be received or whether events can be pushed to the specified MNS queue, Function Compute function, Simple Log Service Logstore, or callback URL.

Limits: You can test only a system event-triggered alert rule that is associated with a specific Alibaba Cloud service and a specific event.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Center > System Event.

  3. On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.

  4. Find the alert rule that you want to test, click the 更多 icon in the Actions column, and then click Test.

  5. In the Create Event Test panel, select the event to be tested.

  6. In the Content (JSON) section, edit the event content, such as the instance ID.

  7. Click OK.

    CloudMonitor automatically sends a test alert notification to the alert contact.

Modify a system event-triggered alert rule

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Center > System Event.

  3. On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.

  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 system event-triggered alert rule.

    For more information about the parameters, see Parameters of a system event-triggered alert rule.

  6. Click OK.

Disable system event-triggered alert rules

By default, Enable Status is Enabled for a newly created system event-triggered alert rule. If you do not need to receive notifications that are generated based on a system 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 Event Center > System Event.

  3. On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.

  4. Disable one or more system event-triggered alert rules.

    • Disable a single alert rule

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

      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 system event-triggered alert rules

You can enable a system event-trigger alert rule whose Enable Status is Disabled.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Center > System Event.

  3. On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.

  4. Enable one or more system event-triggered alert rules.

    • Enable a single alert rule

      1. Find the alert rule that you want to enable and click Enable in the Actions column.

      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 system event-triggered alert rules

After you delete a system event-triggered alert rule, CloudMonitor no longer sends the related alert notifications to you.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Center > System Event.

  3. On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.

  4. Delete one or more system event-triggered alert rules.

    • Delete a single alert rule

      1. Find the alert rule that you want to delete and click Delete in the Actions column.

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

References