1 Star 0 Fork 128

Andrew-Y / PrometheusAlert

forked from feiyu563 / PrometheusAlert 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
system.md 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
jikun.zhang 提交于 2022-04-02 19:58 . 更新说明文档

告警系统接入PrometheusAlert配置


PrometheusAlert的原理就是通过自定义模版接口/prometheusalert接收各种告警系统或者任何带有WebHook功能的系统发来的消息,然后将收到的消息经过自定义模板渲染成消息文本,最终转发给不同的接收目标。

一般情况下如果使用的是钉钉,企业微信、飞书等机器人作为接收目标的,可以不去配置PrometheusAlert的配置文件app.conf;但是如果需要使用如短信,电话,邮箱等功能,则需要先配置好app.conf中的相关配置项方可使用。

系统接入PrometheusAlert流程参考

PrometheusAlert处理告警消息原理

XXX-WebHook --> POST-JSON --> /prometheusalert?type=dd&tpl=prometheus-dingding&ddurl=https://oapi.dingtalk.com/robot/send?access_token=xxxx --> PrometheusAlert通过tpl模版prometheus-dingding渲染收到的JSON --> 将渲染后的消息文本发送给https://oapi.dingtalk.com/robot/send?access_token=xxxx --> 钉钉机器人完成告警

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/andrew-y/PrometheusAlert.git
git@gitee.com:andrew-y/PrometheusAlert.git
andrew-y
PrometheusAlert
PrometheusAlert
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891