prom-elastic-alert

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

README

English | 中文

prom-elastic-alert是一个基于查询Elasticsearch的告警组件.

如有帮助给个Star⭐鼓励一下~️

简介

本项目prom-elastic-alert主要是解决Elastic栈中, ELK告警市面上没有更多的日志告警开源组件可供选择.虽然之前有使用过Elastalert项目, 但是该项目已经不维护,并且我们在实际使用的过程中遇到了一些问题:

  • 1.组件使用Python编写,性能较差有时候造成告警延迟
  • 2.告警收敛、告警聚合、收敛等功能较弱
  • 3.组件运行数据不能对接Prometheus监控体系

本项目灵感来自于Elastalert

特性及优点

  • 1.使用Golang编写,跨平台、体积小、性能有足够的优势
  • 2.自身不实现告警聚合、收敛、分组等,这是alertmanager的优势所在,没必要自己再造轮子.引入PrometheusAlert实现多类型告警
  • 3.内置exporter,可以接入Prometheus监控体系,查看当前组件运行状态、数据等
  • 4.支持Elasticsearch7、Elasticsearch8
  • 5.提供现成的Grafana面板json文件

架构图

架构图

告警样例

钉钉通知

钉钉告警图

告警详情

告警详情图

Grafana面板

Grafana面板图

安装与使用

  • 1.下载release二进制文件,拷贝config.yaml,运行即可
  • 2.进入compose目录,使用docker-compose运行(example)
  • 3.自行编译, git clone 项目到本地, 之后go build即可

文档

详细文档: 使用文档

License

BFE is under the Apache 2.0 license. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL