All Products
Search
Document Center

Microservices Engine:Configure a DingTalk chatbot to send alert notifications

Last Updated:Feb 07, 2024

The alerting feature of Microservices Engine (MSE) allows you to receive alert notifications by using DingTalk groups. When you configure a DingTalk chatbot to send alert notifications, you can specify DingTalk groups to receive alert notifications. This topic describes how to configure a DingTalk chatbot to send alert notifications.

Procedure

  1. Obtain the webhook URL of a DingTalk chatbot.

    1. Run the DingTalk client on a PC, go to the DingTalk group to which you want to add an alert chatbot, and then click the 钉钉群设置按钮 icon in the upper-right corner.

    2. In the Group Settings panel, click Bot in the Group Management section. In the panel that appears, click Add Robot.

    3. In the Robot dialog box, click Add Robot. In the dialog box that appears, click the Custom card.

    4. In the Robot details dialog box, click Add.

    5. In the Add Robot dialog box, add a profile picture and enter a name for the chatbot. Then, read the terms of service, select the check box to confirm that you have read the terms of service, and then click Finished.

      If you want to receive alerts for service inspection, select Custom Keywords in the Security Settings section and enter the keyword Microservice Online Monitoring in the field that appears.

    6. In the Add Robot dialog box, copy the webhook URL that the system generates for the chatbot.

  2. Add the DingTalk chatbot as a contact in the MSE console. For more information about how to create a contact, see Create a contact in the "Manage alert contacts" topic.

  3. Configure an alert rule.

    • If no alert rule is created, create an alert rule before you proceed with subsequent operations. Set the Notification Objects parameter to DingTalk/Lark/WeCom and select the DingTalk chatbot that you create. For more information, see Manage alert rules.

    • If an alert rule already exists, modify the alert rule. Set the Notification Objects parameter to DingTalk/Lark/WeCom and select the DingTalk chatbot that you create. For more information, see Manage alert rules.

After you perform the preceding operations, a DingTalk chatbot is configured to send alert notifications. When an alert is triggered, you can receive alert notifications from the specified DingTalk group.

Related operations

If you do not want to receive alert notifications from the DingTalk chatbot, you can remove the DingTalk chatbot in the Settings dialog box. In the Settings dialog box, click Bot in the Group Management section of the Group Settings panel.