All Products
Search
Document Center

E-MapReduce:Create and test a system event-triggered alert rule

Last Updated:Sep 20, 2024

This topic describes how to create and test a system event-triggered alert rule. System event-triggered alert rules allow you to receive alert notifications and handle exceptions immediately after the specified events occur in E-MapReduce (EMR).

Prerequisites

An application group is created and resources are added to the application group. Otherwise, you cannot apply alert rules to the instances in the application group. For more information about how to create an application group and add resources to the application group, see Create an application group and the Add resources to the application group section of the Modify an application group topic.

Create a system event-triggered alert rule

This topic describes how to create a system event-triggered alert rule. For information about how to create a custom event-triggered alert rule, see the Create a custom event-triggered alert rule section of the Manage custom event-triggered alert rules topic.

  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 following parameters, retain the default values for other parameters, and click OK.

    For more information about the parameters, see the Create a system event-triggered alert rule section of the Manage system event-triggered alert rules (old) topic.

    Parameter

    Description

    Alert Rule Name

    The name of the system event-triggered alert rule.

    Product Type

    Select E-MapReduce.

    Event Type

    The type of the event that triggers alerts.

    Event Level

    The level of the event that triggers alerts.

    Event Name

    The name of the event that triggers alerts.

    Alert Contact Group

    The alert contact group that receives alert notifications.

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.