PrometheusAlert
1. Prometheus Alert 简介
Prometheus Alert 是开源的运维告警中心消息转发系统,支持主流的监控系统 Prometheus,日志系统 Graylog 和数据可视化系统 Grafana 发出的预警消息。通知渠道支持钉钉、微信、华为云短信、腾讯云短信、腾讯云电话、阿里云短信、阿里云电话等。
2. PrometheusAlert 特性
支持多种消息来源,目前主要有prometheus、graylog2、graylog3、grafana。
支持多种类型的发送目标,支持钉钉、微信、腾讯短信、腾讯语音、华为短信。
针对Prometheus增加了告警级别,并且支持按照不同级别发送消息到不同目标对象。
简化Prometheus分组配置,支持按照具体消息发送到单个或多个接收方。
增加手机号码配置项,和号码自动轮询配置,可固定发送给单一个人告警信息,也可以通过自动轮询的方式发送到多个人员且支持按照不同日期发送到不同人员。
增加 Dashboard,暂时支持测试配置是否正确
3. 部署方法
PrometheusAlert 可以部署在本地和云平台上,支持windows、linux、公有云、私有云、混合云、容器和kubernetes。你可以根据实际场景或需求,选择相应的方式来部署 PrometheusAlert:
容器部署:
$ git clone https://github.com/feiyu563/PrometheusAlert.git
$ mkdir /etc/prometheusalert-center/
$ cp PrometheusAlert/conf/app.conf /etc/prometheusalert-center/
$ docker run -d -p 8080:8080 -v /etc/prometheusalert-center:/app/conf --name prometheusalert-center feiyu563/prometheus-alert:latest
Linux 系统部署
$ git clone https://github.com/feiyu563/PrometheusAlert.git
$ cd PrometheusAlert/example/linux/
# 后台运行请执行 nohup ./PrometheusAlert &
$ ./PrometheusAlert
Windows 系统部署
$ git clone https://github.com/feiyu563/PrometheusAlert.git
$ cd PrometheusAlert/example/windows/
双击运行 PrometheusAlert.exe 即可
kubernetes 部署
$ kubectl app -n monitoring -f https://raw.githubusercontent.com/feiyu563/PrometheusAlert/master/example/kubernetes/PrometheusAlert-Deployment.yaml
Helm 部署
$ git clone https://github.com/feiyu563/PrometheusAlert.git
$ cd PrometheusAlert/example/helm/prometheusalert