All Products
Search
Document Center

Managed Service for OpenTelemetry:DingTalk chatbots

Last Updated:Feb 27, 2025

You can integrate DingTalk with Managed Service for OpenTelemetry for alert management. After creating a DingTalk chatbot, you can configure notification policies to route alerts to designated DingTalk groups. If any of the alert conditions are met, the system automatically alerts the DingTalk group. Then, you can directly clear the alerts in the DingTalk group.

Prerequisite

A DingTalk group is created, where you'll receive alerts.

Step 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 a chatbot, and click the Group Settings icon in the upper-right corner.

  2. In the Group Settings panel, click Bot. In the Robot Management panel, click Add Robot.

  3. In the Robot dialog box, click Add Robot, and then click Custom.

    image.png

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

  5. In the Add Robot dialog box, perform the following steps:

    Add Robot

    1. Specify a profile picture and a name for the chatbot.

    2. Select Custom Keywords for the Security Setting parameter. Then, enter alert as a keyword.

    3. Read the terms of service and select I Acknowledge and Accept the DingTalk Custom Robot Service Terms of Service.

    4. Click Finished.

  6. Copy the webhook URL of the chatbot and click OK. Add Robot

Step 2: Create a DingTalk group in the Managed Service for OpenTelemetry console

  1. Log on to the Managed Service for OpenTelemetry console.

  2. In the left-side navigation pane, choose Alert Management > Notification Objects. Click the DingTalk/Lark/WeCom tab, and select DingTalk.

  3. In the Create DingTalk Chatbot panel, configure the following parameters and click OK.

    Parameter

    Description

    Name

    The name of the DingTalk chatbot.

    Signature Key

    Optional. If you specify a signature key, your DingTalk account is verified by a signature. If no key is specified, a keyword whitelist, alert, is used for verification by default.

    Chatbot Webhook URL

    The webhook URL of the DingTalk chatbot.

    Whether the Chatbot Sends Daily Statistics

    If you select this option, you must enter the time points in the HH:mm format. Separate multiple time points with commas (,). At each of the time points, ARMS automatically generates daily alert reports containing:

    • Total triggered alerts

    • Resolved alert count

    • Pending alert backlog

    Card Content Configuration

    Customize the style and content of the alert notification card.

Manage alerts in the DingTalk group

After you receive an alert notification in the DingTalk group, you can view and manage it there. For more information, see Handle alerts in the specified group chat.

Related steps

On the DingTalk/Lark/WeCom tab, you can perform the following actions:

  • Search: Enter a keyword of the object name in the search box and click the Search icon.

  • Edit: Click Edit in the Actions column. In the dialog box that appears, change the settings and click OK.

  • Delete: Click Delete in the Actions column. In the dialog box that appears, click OK.