To enable an alert contact to receive alert notifications in a DingTalk group, you must add the webhook URL of a DingTalk chatbot to the alert contact and configure an alert rule. Then, if the alert rule is triggered, the alert contact can receive alert notifications in the DingTalk group.

Prerequisites

An alert contact is created. For more information, see Create an alert contact or alert contact group.

Step 1: Create a DingTalk chatbot

The following procedure demonstrates how to create a DingTalk chatbot in DingTalk for PC.

  1. Start DingTalk for the PC and go to the DingTalk group to which the alert contact belongs.
  2. Click the Group Settings icon in the upper-right corner.
  3. In the Group Settings panel, click Group Assistant.
  4. In the Group Assistant panel, click Add Robot.
  5. In the Please choose which robot to add section of the ChatBot dialog box, click Custom.
  6. In the Robot details dialog box, click Add.
  7. In the Add Robot dialog box, configure the parameters.
    • Enter a chatbot name, for example, CloudMonitor alert notifications.
    • Select Custom Keywords and add the following keywords: CloudMonitor, Cloud Service, Monitor, ECS, and Alert.
  8. Select I have read and accepted <<DingTalk Custom Robot Service Terms of Service>> and click Finished.
  9. Click Copy to copy the webhook URL.

Step 2: Add the webhook URL of the DingTalk chatbot to the alert contact

Add the webhook URL of the DingTalk chatbot to the alert contact.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. On the Alert Contacts tab, find the alert contact that you want to modify and click Edit in the Actions column.
  4. In the Set Alert Contact panel, enter the webhook URL of the DingTalk chatbot.
  5. Confirm the parameter values and click OK.

Step 3: Create an alert contact group

Add the alert contact to an alert contact group.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Contacts.
  3. Click the Alert Contact Group tab.
  4. On the Alert Contact Group tab, click Create Alert Contact Group.
  5. In the Create Alert Contact Group panel, enter a name for the alert contact group and add the alert contact to the group.
  6. Click Confirm.

Step 4: Configure an alert rule

When you configure the alert rule, you must select the alert contact group that you created. If the value of a resource metric reaches the specified alert threshold, the alert rule is triggered and CloudMonitor sends alert notifications to the DingTalk group. For more information about how to configure the parameters of an alert rule, see Create an alert rule. DingTalk alert notification