Custom alert rules

Updated at:

This topic describes how to create custom alert rules in IoT Edge.

Prerequisites

  • You have created a DingTalk O&M group.

  • You have added a custom robot to the DingTalk O&M group and obtained its Webhook URL. For more information, see the official DingTalk documentation.

Create an alert rule

  1. Log on to the IoT Edge console.

  2. In the navigation pane on the left, choose O&M and Support > Alert Rules.

  3. On the Alert Rules page, click the Custom Alerts tab, and then click Create Alert Rule.

  4. In the Create Alert Rule panel, configure the parameters for the custom alert rule.

    Parameter

    Description

    ❶ Alert rule settings

    Alert Rule Name

    The name of the custom alert rule. The name can contain Chinese characters, uppercase and lowercase letters, digits, underscores (_), and hyphens (-). The name must be 1 to 30 characters in length. A Chinese character is counted as two characters.

    Alert Level

    The severity level of the alert rule. The supported levels are Critical, Major, and Minor. The severity order is: Critical > Major > Minor.

    Monitoring Scope

    The scope of the custom alert rule:

    • All Hosts: The alert rule applies to all integrated edge machines under the current Alibaba Cloud account.

    • Specific Hosts: The alert rule applies to specified integrated edge machines. Select the integrated edge machines from the drop-down list. You can select up to 10 integrated edge machines.

    • Specific Devices: The alert rule applies to devices that belong to a specified product. Select the product and devices from the drop-down lists.

    Alert Type

    The following two types are available:

    Note

    If you set Monitoring Scope to Specific Devices, only Event alerts are supported.

    • Metric: Reports alerts based on metrics such as memory, disk, and processor usage.

    • Event: Reports alerts based on system-defined events.

    Alert Rule Condition

    You can set alert rule conditions using the following two methods:

    • If you set Alert Type to Metric, you must set the statistical period, metric, statistical method, operator, and threshold. An alert is sent to the recipient when the specified conditions are met.

    • If you set Alert Type to Event, you must select a system event. An alert is sent to the recipient when the specified event occurs.

    ❷ Alert notification settings

    Effective Period

    The time range during which the alert rule is active each day. You can set the hour and minute.

    Alert Silence Period

    The period after an alert is triggered during which no new notifications are sent for subsequent alerts.

    DingTalk Robot Webhook

    Enter the DingTalk robot Webhook URL that you obtained in the Prerequisites section. Alerts that match this rule are sent to your DingTalk O&M group through the DingTalk robot.

    Send Recovery Notification

    This parameter is required when Alert Type is set to Metric. Specifies whether to send a notification to the recipient after the alert is resolved.

  5. Click OK to create the custom alert.

    Note

    After a custom alert rule is created, it is enabled by default.

Manage custom alerts

On the Custom Alerts tab of the Alert Rules page, you can manage custom alerts.

Function buttons

Description

Status

The Status column for a custom alert shows whether the alert is enabled. Turn the switch on or off to enable or disable the alert rule.

Edit

Modify a custom alert rule. For a detailed description of the parameters, see the parameter table in Step 4 of the Create an alert rule section.

Delete

Delete the custom alert rule.

Important

After an alert rule is deleted, notifications for this type of alert are no longer sent. Perform this operation with caution.