53 Star 350 Fork 126

feiyu563 / PrometheusAlert

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
system-graylog.md 1022 Bytes
一键复制 编辑 原始数据 按行查看 历史
jikun.zhang 提交于 2022-07-01 11:58 . 更新帮助文档目录结构“

graylog接入配置

首先使用管理员或者具有告警配置权限的帐号登录进Graylog日志系统后台,打开Graylog管理页面并进入Alerts配置。

graylog1

点击Add new notification创建新的告警通道,选择如下图配置:

graylog2

在弹出的窗口中填入名称和对应的PrometheusAlert的接口地址(接口地址可以去PrometheusAlert的自定义模板页面获取)即可(graylog各版本消息有区别,默认PrometheusAlert集成了graylog2和graylog3的消息模版,其他版本的模版需要自行定义):

参考地址:http://[prometheus-alert-center]:8080/prometheusalert?type=dd&tpl=graylog3-dd&ddurl=钉钉机器人地址&at=18888888888

graylog3

PrometheusAlert的自定义模板页面

graylog3

配置完成后,点击Test测试下是否能够正常接收告警消息即可

最终告警效果:

graylog4

Go
1
https://gitee.com/feiyu563/PrometheusAlert.git
git@gitee.com:feiyu563/PrometheusAlert.git
feiyu563
PrometheusAlert
PrometheusAlert
master

搜索帮助