1 Star 0 Fork 128

Andrew-Y / PrometheusAlert

forked from feiyu563 / PrometheusAlert 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
conf-es.md 826 Bytes
一键复制 编辑 原始数据 按行查看 历史
jikun.zhang 提交于 2022-04-02 19: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

马建仓 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