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.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the Event Monitoring tab, click Save as Alert Rule.
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.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the Event Monitoring tab, click Old Event Alarm Rules in the upper-right corner.
Find the alert rule that you want to test, click the icon in the Actions column, and then click Test.
In the Create Event Test panel, select the event to be tested.
In the Content (JSON) section, edit the event content, such as the instance ID.
Click OK.
CloudMonitor automatically sends a test alert notification to the alert contact.