You can use CloudMonitor to configure alert rules so that you are notified when system events occur.

Prerequisites

If you want to apply alert rules to instances in a specified application group, make sure that the application group contains member instances. For more information, see Create an application group and Add resources to the application group.

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 track the use of Alibaba Cloud services and receive alert notifications at the earliest opportunity. Supported Alibaba Cloud services and system events
Custom event You can call an API operation of CloudMonitor to report the anomalous events that occur in your Alibaba Cloud services to CloudMonitor. This allows you to track the use of the 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

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Monitoring > System Event.
  3. Click the Event Alert tab.
  4. Click Create Alert Rule.
  5. In the Create / Modify Event Alert panel, set the parameters of the system event-triggered alert rule.
    Parameter Description
    Alert Rule Name The name of the event-triggered alert rule.
    Product Type The Alibaba Cloud service to which the event-triggered alert rule is applied. For more information about the Alibaba Cloud services supported by CloudMonitor, see Appendix 2: System events.
    Event Type The type of the event that triggers alerts. For more information about the types of the 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 severity 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, no alert notification is sent.
    • Does not contain any of the keywords: If the alert rule does not contain any one of the specified keywords, no alert notification is sent.
    SQL Filter The SQL statement that is used to filter the alert rule.
    Resource Range The range of the resources to which the event-triggered alert rule is applied. Valid values:
    • All Resources: If the Resource Range parameter is set to All Resources, CloudMonitor sends an alert notification when the specified event occurs on a resource.
    • Application Group: If the Resource Range parameter is set to Application Group, CloudMonitor sends an alert notification only when the specified event occurs on a resource in the application group.
    Contact Group The contact group that receives alert notifications.
    Notification Method The severity level and notification method of the event alert. Valid values:
    • Critical (Email + DingTalk)
    • Warning (Email + DingTalk)
    • Info (Email + DingTalk)
    MNS Queue The specified queue in Message Service (MNS) to which the event alert is delivered.
    Function Compute The specified function of Function Compute to which the event alert is delivered.
    URL Callback The URL that is used to receive the alert notifications sent from CloudMonitor by using HTTP POST requests. The URL must be accessible over the Internet. You can enter only an HTTP URL. For more information about how to set callback URLs, see Configure callbacks for system event-triggered alerts.
    Log Service The specified Logstore in Log Service to which the event alert is delivered.
    Channel Silence Cycle The interval at which CloudMonitor sends alert notifications until the alert that is triggered based on the alert rule is cleared. Valid values: 5 min, 15 min, 30 min, 60 min, 3 h, 6 h, 12 h, and 24 h.
  6. Click OK.

Test a system event-triggered alert rule

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Monitoring > System Event.
  3. Click the Event Alert tab.
  4. Find the alert rule that you want to test and click Test in the Actions column.
  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 generates an event based on the event content to trigger the alert rule.

References

In CloudMonitor, you can associate subsequent processing methods (such as Message Service queues) with alert rules to automatically handle the state change events of Elastic Compute Service (ECS) instances. For more information, see Automate O&M based on status change events of ECS instances.