Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 898 Bytes

File metadata and controls

22 lines (19 loc) · 898 Bytes

alertmanager-dingtalk

Docker Pulls

  1. 在一个钉钉群组里添加群机器人
    addBot

  2. 获取群机器人accessToken
    accessToken

  3. 运行docker run启动容器, 其中accessToken替换为实际的对应值

    docker run -d --name alertmanager-dingtalk --restart always -e accessToken="accessToken" -p 9166:9166 jrohy/alertmanager-dingtalk
    
  4. 配置alertmanager webhook规则:

    receivers:
    - name: 'alert-webhook'
      webhook_configs:
      - url: http://xx.xx.xx.xx:9166/alert
        send_resolved: true