This topic describes how to create an event alert rule and debug system events in E-MapReduce. This helps you receive timely notifications and handle exceptions when system events occur.
Prerequisites
To apply an event alert rule to instances in a specific application group, you must first create the application group and add resources to it. For instructions, see Create an application group and Add resources to an application group.
Create an event alert rule
The following steps describe how to create an event alert rule for a system event. To create a rule for a custom event, see Create a custom event alert rule.
-
Log on to the Cloud Monitor console.
-
In the navigation pane, choose .
On the Event Monitoring tab, click Save as alert rule.
-
In the Create/Modify Event-triggered Alert Rule panel, set the required parameters and click OK.
Leave other parameters at their default values. For a detailed description of all parameters, see Create a system event alert rule.
Parameter
Description
Alert rule name
A name for the event alert rule.
Product type
Select E-MapReduce.
Event Type
The type of the event that triggers the rule.
Event Level
The severity level of the event.
Event Name
The name of the specific event.
Alert contact group
The alert contact group that will receive alert notifications.
Debug a system event alert rule
After you create a system event alert rule, you can use the debug feature to verify that notifications are sent correctly to your configured endpoints, such as a Simple Message Queue (SMQ) queue, a Function Compute function, a URL callback, or a Simple Log Service Logstore.
Limits: You can debug only alert rules for system events associated with a specific cloud service and event name.
-
Log on to the Cloud Monitor console.
-
In the navigation pane, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Find the alert rule that you want to debug, click the
icon in the Actions column, and then click Debug.In the Create event debugging panel, select the event that you want to debug.
In the Content (JSON format) area, the event content is displayed. You can modify information such as the instance ID to match your test environment.
Click OK.
Cloud Monitor automatically sends a test alert notification to the alert contacts.