1 Star 0 Fork 127

陈先乐 / PrometheusAlert

forked from feiyu563 / PrometheusAlert 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dingding.md 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Zhu Zhengyang 提交于 2020-11-23 15:54 . Update dingding.md

PrometheusAlert全家桶钉钉配置说明


开启钉钉机器人

打开钉钉,进入钉钉群中,选择群设置-->智能群助手-->添加机器人-->自定义,可参下图:

ding

ding2

新版本的钉钉加了安全设置,只需选择安全设置中的 自定义关键词 即可,并将关键词设置为 Prometheus或者app.conf中设置的title值均可,参考下图

ding3

ding4

复制图中的Webhook地址,并填入PrometheusAlert配置文件app.conf中对应配置项即可。

钉钉相关配置:

#---------------------↓全局配置-----------------------
#告警消息标题
title=PrometheusAlert
#钉钉告警 告警logo图标地址
logourl=https://raw.githubusercontent.com/feiyu563/PrometheusAlert/master/doc/alert-center.png
#钉钉告警 恢复logo图标地址
rlogourl=https://raw.githubusercontent.com/feiyu563/PrometheusAlert/master/doc/alert-center.png

#---------------------↓webhook-----------------------
#是否开启钉钉告警通道,可同时开始多个通道0为关闭,1为开启
open-dingding=1
#默认钉钉机器人地址
ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxxx
#是否开启 @所有人(0为关闭,1为开启)
dd_isatall=1
Go
1
https://gitee.com/chenxianle/PrometheusAlert.git
git@gitee.com:chenxianle/PrometheusAlert.git
chenxianle
PrometheusAlert
PrometheusAlert
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891