53 Star 350 Fork 126

feiyu563 / PrometheusAlert

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

告警记录写入Elasticsearch

注意:

  • 客户端适配的是ES7.x版本!
  • 索引根据年月动态创建prometheusalert-YYMM(如prometheusalert-202112)

es相关配置

# 是否将告警记录写入es7,0为关闭,1为开启
alert_to_es=0

# es地址,是[]string
# beego.AppConfig.Strings读取配置为[]string,使用";"而不是","
# 单个地址
to_es_url=http://localhost:9200
# 多个地址
# to_es_url=http://es1:9200;http://es2:9200;http://es3:9200

# 是否有认证,es用户和密码, 无认证则不需要填写。
# to_es_user=username
# to_es_pwd=password

Kibana展示效果

可直接创建索引模式展示告警记录。还可以自行创建表格、柱状图等展示。

kibana-index

kibana-table

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

搜索帮助