Create a DingTalk chatbot in Alert Management and add the DingTalk group to a notification policy. When a matching rule is triggered, alert notifications are automatically sent to the specified group, where you can manage them directly.
Prerequisites
You have created a DingTalk group to receive alert notifications.
Create a DingTalk chatbot
-
Create a custom chatbot in your DingTalk group and obtain its webhook URL. For more information, see Set up DingTalk chatbot alerting.
-
Log on to the Managed Service for Prometheus console. In the left navigation pane, choose .
-
Click the DingTalk/Lark/WeCom tab, and then click the DingTalk card.
-
In the panel that appears, configure the following parameters and click OK.
Parameter
Description
Name
Custom name for the DingTalk chatbot.
Signature Key
Optional. If provided, the signature key is used for authentication. Otherwise, authentication defaults to a keyword whitelist. The default keyword is
alert.Chatbot Webhook URL
Webhook URL of the DingTalk chatbot.
Whether the Chatbot Sends Daily Statistics
If enabled, specify the times to send daily statistics, separated by commas (,) in
HH:mmformat. At each specified time, Alert Management sends a summary of total, resolved, and unresolved alerts.Card Content Configuration
Customizes the style and content of the alert notification card.
Manage alerts in a DingTalk group
After receiving an alert notification in a DingTalk group, you can view and manage alerts within that group. For more information, see Handle alerts in an alert notification group.
Related operations
After you create a chatbot, you can find, edit, or delete it on the DingTalk/Lark/WeCom tab:
-
To edit a chatbot: In the Actions column for the chatbot, click Edit. In the panel that appears, modify the information and click OK.
-
To delete a chatbot: In the Actions column for the chatbot, click Delete. In the confirmation dialog box that appears, click Confirm.