Skip to main content

Dingding alarm

Overview

This article mainly introduces how to configure Alertmanager to send messages to DingTalk.

For details on cluster monitoring and alarm deployment, see Monitoring and Alarm Deployment

Preconditions

  • Users who use the DingTalk alarm need to have the DingTalk robot Webhook address, and receive alarm information through the Webhook, please refer to official documentfor the acquisition method;

Steps

  1. Edit the Alertmanager configuration file, click Edit in Environment Configuration ->Configuration File Configuration
  1. The following is the template file. After the modification is completed, the original configuration file can be overwritten to update the component.

    The url does not need to be modified, other content is modified as needed

global:
resolve_timeout: 5m
route:
receiver: webhook
group_wait: 30s
group_interval: 5m
repeat_interval: 5m
group_by: [alertname]
routes:
- receiver: webhook
group_wait: 10s
receivers:
- name: webhook
webhook_configs:
- url: http://127.0.0.1:8060/dingtalk/webhook1/send
send_resolved: true
  1. The recommended security settings when obtaining the DingTalk Webhook address are as follows::
  1. After obtaining the DingTalk Webhook address, manually modify the Webhook address of the DingTalk component

Modify the value of the WEBHOOK_ADDRESS variable in the DingTalk component page -->environment configuration, and the update will take effect after the modification is completed.

This completes the deployment of DingTalk alarm.