After you create a WeCom chatbot and add it to a notification policy, alert notifications are automatically sent to the specified WeCom group when a matching rule is triggered. You can then view and handle alerts directly in the group.
Prerequisites
A WeCom group is created to receive alert notifications.
Step 1: Get the chatbot webhook URL
-
Log in to WeCom.
-
In the upper-right corner of the WeCom group chat, click the
icon, and then click Group Chatbot. -
On the Group Chatbot page, click Add Chatbot. On the Chatbot page, click Add.
-
On the Add Chatbot page, enter a custom name for the chatbot, and then click Add.
-
Click Copy and save the webhook URL.
Step 2: Create a chatbot
-
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 WeCom card.
-
Configure the following parameters and click OK.
Parameter
Description
Name
Enter a name for the WeCom chatbot.
Webhook URL
Enter the webhook URL of the WeCom chatbot.
Send daily statistics
If you select this option, specify the times of day to send daily statistics. Separate multiple times with commas (,) in the
HH:MMformat. At the specified times, a daily summary is sent that includes the total, resolved, and pending alert counts.Card Content Configuration
Customize the style and content of alert notification cards.
Manage alerts in a WeCom group
After an alert notification is received in your WeCom group, you can view and handle the alert directly in the chat. For more information, see Handle alerts in group chats.
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.