All Products
Search
Document Center

E-MapReduce:Create a threshold-triggered alert rule

Last Updated:May 18, 2023

CloudMonitor is a monitoring and alerting service provided by Alibaba Cloud. You can create threshold-triggered alert rules in the CloudMonitor console to monitor the usage of E-MapReduce (EMR) resources. If the value of a metric exceeds the threshold that is specified in a rule, CloudMonitor automatically sends an alert notification. This way, you can receive the notification and handle the related exceptions at the earliest opportunity.

Prerequisites

An EMR cluster is created.

Procedure

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Alerts > Alert Rules.

  3. On the Alert Rules page, click Create Alert Rule.

  4. In the Create Alert Rule panel, configure the parameters for an alert rule. For more information, see Create an alert rule. The following table describes the parameters.

    Parameter

    Description

    Product

    Select E-MapReduce from the drop-down list.

    Resource Range

    The resources to which the alert rule is applied. Valid values:

    • All Resources: The alert rule is applied to all EMR clusters of the current Alibaba Cloud account.

    • Application Group: The alert rule is applied to all EMR clusters in a specific application group of the current Alibaba Cloud account.

    • Instances: The alert rule is applied only to a specific EMR cluster.

    Rule Description

    The content of the alert rule. This parameter specifies the condition that triggers an alert. For example, if you specify a condition in which the average CPU utilization every 5 minutes is greater than or equal to 90% for three consecutive cycles, CloudMonitor checks the metric every 5 minutes for three consecutive cycles.

    Note

    For more information, see E-MapReduce.

    To configure the content of the alert rule, perform the following steps:

    1. Click Add Rule.

    2. In the Add Rule Description panel, configure the Alert Rule, Metric Type, Metric, and Threshold and Alert Level parameters.

    3. Click OK.

    Mute for

    The period during which an alert is muted. This parameter specifies the interval at which an alert notification is sent to the specified contacts again if the alert is not cleared.

    Effective Period

    The period during which the alert rule is effective. The system monitors the metric and generates an alert only if the alert rule is in effect.

    Alert Contact Group

    The contact groups to which alert notifications are sent.

    You can select one or more existing contact groups or create a contact group. For more information about how to create a contact group, see Create an alert contact or alert contact group.

    Alert Callback

    The URL that can be accessed from the Internet. CloudMonitor uses a POST request to send alert information to this URL. Only HTTP requests are supported.

    Auto Scaling

    If you turn on Auto Scaling, a specific scaling rule is triggered when an alert is generated. You must configure the Region, ESS Group, and ESS Rule parameters.

    Log Service

    If you turn on Log Service, the alert information is written to Log Service when an alert is generated. You must configure the Region, ProjectName, and Logstore parameters.

    For more information about how to create a project and a Logstore, see Getting Started.

    Message Service - topic

    If you turn on Message Service - topic, the alert information is written to a specific topic in Message Service (MNS) when an alert is triggered. You must configure the Region and topicName parameters.

    For information about how to create a topic, see Create a topic.

    Method to handle alerts when no monitoring data is found

    The method that is used to handle alerts when no monitoring data is found. Valid values:

    • Do not do anything (default value)

    • Send alert notifications

    • Treated as normal

    Note

    You can click Advanced Settings to configure this parameter.

    Tag

    The tags of the alert rule. A tag consists of a tag name and a tag value.

  5. Click Confirm.