All Products
Search
Document Center

CloudMonitor:Create a custom monitoring alert rule

Last Updated:Mar 27, 2024

CloudMonitor allows you to configure an alert rule for a custom metric. If the metric value reaches the specified threshold, CloudMonitor sends alert notifications to the alert contacts in the contact group that you specify.

Prerequisites

The data of a custom metric is reported to CloudMonitor. For more information, see Overview.

Procedure

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Access Center > Custom Monitoring.

  3. Click the Alert Rules tab.

  4. Click Create Alert Rule.

  5. In the Create/Modify Custom Monitoring Alert Rule panel, configure the parameters for the alert rule. The following table describes the parameters.

    Parameter

    Description

    Rule Name

    The name of the alert rule.

    Application Group

    The ID of the application group to which the alert rule belongs.

    Default value: Does not belong to any group. You can select an application group based on your business requirements. For information about how to create an application group, see Create an application group.

    Metric

    The name of the custom metric.

    Dimensions

    The resources for which you want to query the monitoring data.

    The value is a set of key-value pairs. Examples: instanceId:i-uf6j91r34rnwawoo**** and userId:100931896542****.

    Notification Method

    The notification methods. In this example, the Email + Webhook option is specified.

    Rule Description

    The condition that triggers an alert. If the metric meets the specified condition, an alert is triggered.

    Contact Group

    The alert contact groups. For more information about how to create an alert contact group, see Create an alert contact or alert contact group.

    • If the Application Group parameter is set to Does not belong to any group, you can select one or more alert contact groups. If an alert is triggered, the alert contacts in the alert contact groups receive alert notifications.

    • If you select an application group from the Application Group drop-down list, you can select one or more alert contact groups. If an alert is triggered, the alert contacts in the alert contact groups receive alert notifications. The alert contact group of the application group remains unchanged. The alert contacts in the alert contact group do not receive alert notifications.

    Triggered when threshold is exceeded for

    The number of consecutive times that the threshold value is exceeded. If the number of times exceeds the limit that you specify, the alert contacts in the alert contact group receive alert notifications. Valid values: 1, 3, 5, 10, 15, and 30.

    Mute For

    The interval at which CloudMonitor resends alert notifications before an alert is cleared. Valid values: 5 Minutes, 10 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.

    If the threshold value is exceeded, CloudMonitor sends an alert notification. If the threshold value is exceeded again within the mute period, CloudMonitor does not resend an alert notification. If the alert is not cleared after the mute period ends, CloudMonitor resends an alert notification.

    Effective Period

    The period during which the alert rule is effective. CloudMonitor sends alert notifications based on the alert rule only within the effective period.

    Note

    If an alert rule is not effective, no alert notification is sent. However, the alert history is still displayed on the Alert History page.

    Alert Callback

    The callback URL that can be accessed over the Internet. CloudMonitor sends a POST or GET request to push an alert notification to the callback URL that you specify. Only HTTP requests are supported. For information about how to configure callback URLs, see Use the alert callback feature to send notifications about threshold-triggered alerts.

    To test the connectivity of an alert callback URL, perform the following steps:

    1. Click Test next to the callback URL.

      In the Webhook Test panel, you can check and troubleshoot the connectivity of the alert callback URL based on the returned status code and test result details.

      Note

      To obtain the details of the test result, configure the Test Template Type and Language parameters and click Test.

    2. Click Close.

  6. Click Confirm.