https://github.com/he426100/hyperf-prometheus-alert
Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus发出的预警消息,支持微信、钉钉等
https://github.com/he426100/hyperf-prometheus-alert
alertmanager prometheus prometheus-alert
Last synced: about 2 months ago
JSON representation
Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus发出的预警消息,支持微信、钉钉等
- Host: GitHub
- URL: https://github.com/he426100/hyperf-prometheus-alert
- Owner: he426100
- License: mit
- Created: 2023-09-04T22:14:33.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-13T08:52:18.000Z (almost 2 years ago)
- Last Synced: 2025-02-16T15:35:01.757Z (4 months ago)
- Topics: alertmanager, prometheus, prometheus-alert
- Language: PHP
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 介绍
参考了[feiyu563/PrometheusAlert](https://github.com/feiyu563/PrometheusAlert),基于[guanguans/notify](https://github.com/guanguans/notify)实现多平台推送。做这个是因为原版除了路由还会发送到alertmanager中推送的地址,用起来不顺手。### 使用
```
docker run -d \
-v ~/prometheus-alert/.env:/opt/www/.env \
--name hyperf-prometheus-alert \
-p 9501:9501 \
he426100/hyperf-prometheus-alert
```### 配置
路由配置:[config/autoload/alerts.php](https://github.com/he426100/hyperf-prometheus-alert/blob/master/config/autoload/alerts.php)
模板:[storage/view/](https://github.com/he426100/hyperf-prometheus-alert/tree/master/storage/view/),模板引擎:[blade](https://learnku.com/docs/laravel/5.5/blade/1304),理论上支持PrometheusAlert的所有模板
推送通道的密钥写在`.env`文件中### 接入
只支持[prometheus](https://feiyu563.gitbook.io/prometheusalert/system/system-prometheus)接入### 访问
只支持[alertmanager](https://feiyu563.gitbook.io/prometheusalert/system/system-prometheus)推送
POST http://127.0.0.1/alerts
POST http://127.0.0.1/prometheusalert### TODO
- 路由可按关键词匹配
- 支持静默(按路由/关键词)