This topic describes how to configure a DingTalk chatbot to receive alert notifications in a DingTalk group.

Prerequisites

An Alibaba Cloud account is created. To create an Alibaba Cloud account, visit the account registration page.

Background information

CloudMonitor allows you to receive alert notifications in a DingTalk group by following the procedure described in this topic.

To use a DingTalk chatbot to receive alert notifications, you do not need to modify any alert rules. You only need to create an alert contact with the webhook URL of the DingTalk chatbot configured or add the webhook URL of the DingTalk chatbot to an existing alert contact. When alerts are triggered based on alert rules in which the alert contact is an alert notification recipient, you can receive alert notifications in the DingTalk group where the DingTalk chatbot is created.

If you add the webhook URL of a DingTalk chatbot to an existing alert contact, the DingTalk group where the DingTalk chatbot is created will receive all the previous alert notifications that were sent to the alert contact in emails.

Create a DingTalk chatbot on DingTalk for PC

  1. Start DingTalk for PC and go to the DingTalk group where you want to receive alert notifications.
  2. In the upper-right corner, click the Group Settings icon.
  3. In the Group Settings right-side pane, click Group Assistant. In the Group Assistant right-side pane, click Add Robot.
  4. In the ChatBot dialog box, click the + icon and click Custom.
  5. In the Robot details dialog box, click Add.
  6. In the Add Robot dialog box, enter a chatbot name, for example, CloudMonitor alert notifications.
  7. Select Custom Keywords in the Security Settings section and add the following five keywords one by one: Alibaba Cloud, Service, CloudMonitor, Monitor, and ECS. Then, click Finished.
  8. Click Copy to copy the webhook URL.
  9. Click Finished.

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

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alarms > Alarm Contacts. The Alarm Contacts page appears.
  3. On the Alert Contacts tab, find the target alert contact and click Edit in the Actions column.
  4. In the Set Alarm Contact right-side pane, enter the webhook URL in the DingTalk Robot field.