feiyu563 / PrometheusAlert

Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus,Zabbix,日志系统Graylog和数据可视化系统Grafana发出的预警消息,支持钉钉,微信,华为云短信,腾讯云短信,腾讯云电话,阿里云短信,阿里云电话等
https://feiyu563.gitbook.io
MIT License
2.79k stars 672 forks source link

请问怎么在grafana里添加飞书v2的webhook #71

Closed jitangshaobing closed 3 years ago

jitangshaobing commented 3 years ago

image grafana/feishu 好像不行,不能触发消息 image 这里告警测试正常

situjianxiong commented 3 years ago

同问 我试了feishu2,feishuv2都不行

feiyu563 commented 3 years ago

飞书V2的目前只能支持自定义模版的接口。比如打开 http://你部署的PrometheusAlert的地址/template ,找到最下面的 image

注意里面的路径一栏: 比如我的:http://你部署的PrometheusAlert的地址/prometheusalert?type=fsv2&tpl=prometheus-fsv2&fsurl=飞书v2机器人地址

然后把这个地址自己拼接好,填到你的grafana的Url里面

完整地址参考:http://xxx.prometheusalert.com/prometheusalert?type=fsv2&tpl=prometheus-fsv2&fsurl=https://open.feishu.cn/open-apis/bot/v2/hook/cdf0195d-625e-4539-9ba2-xxxxxxxx