This topic describes how to create an event-triggered alert rule and test a system event-triggered alert rule. 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 Add resources to the application group.
Create an event-triggered alert rule
This topic describes how to create a system event-triggered alert rule. For more information, see Create a system event-triggered alert rule. For more information about how to create a custom event-triggered alert rule, see Create a custom event-triggered alert rule.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the page that appears, click the Event-triggered Alert Rules tab.
On the Event-triggered Alert Rules tab, click Create Alert Rule.
In the Create/Modify Event-triggered Alert Rule panel, configure the parameters that are described in the following table.
Parameter
Description
Alert Rule Name
The name of the 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.
Contact Group
The alert group that receives alert notifications.
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 Message Service (MNS), Function Compute, Log Service, or a specific callback URL as configured.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the page that appears, click the Event-triggered Alert Rules tab.
On the Event-triggered Alert Rules tab, find the system event-triggered alert rule that you want to test, click the icon in the Actions column, and then select Test.
In the Create Event Test panel, modify the event content based on your business requirements.
Click OK.
CloudMonitor generates the selected system event to trigger the alert rule.