Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lhns/grafana-ruler-proxy
Configure Prometheus and Alertmanager with Grafana
https://github.com/lhns/grafana-ruler-proxy
alertmanager grafana prometheus
Last synced: 10 days ago
JSON representation
Configure Prometheus and Alertmanager with Grafana
- Host: GitHub
- URL: https://github.com/lhns/grafana-ruler-proxy
- Owner: lhns
- License: apache-2.0
- Created: 2022-09-07T11:30:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T00:24:03.000Z (28 days ago)
- Last Synced: 2024-10-11T00:09:16.743Z (26 days ago)
- Topics: alertmanager, grafana, prometheus
- Language: Scala
- Homepage:
- Size: 179 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grafana-ruler-proxy
Use the Grafana Alert Rule Editor with Prometheus or VictoriaMetrics.
Mimir natively supports the Grafana Ruler API to edit rules and alerts and this proxy brings that functionality to other TSDBs like Prometheus or VictoriaMetrics.
The Proxy will act as the Grafana data source and forward all metrics queries to the TSDB but it will intercept the Grafana UI Ruler calls and update the rule and alert configuration files.## Prometheus Example Config
```json
{
"prometheus": {
"url": "http://prometheus:9090",
"rulePath": "/grafana-ruler-proxy-config/rules.yml",
"internalRulePath": "/config/rules.yml",
"namespace": "prometheus"
},
"alertmanager": {
"url": "http://alertmanager:9093",
"configPath": "/alertmanager/alertmanager.yml"
}
}
```## VictoriaMetrics Example Config
```json
{
"prometheus": {
"url": "http://victoriametrics:8428",
"rulesUrl": "http://vmalert:8880",
"rulePath": "/grafana-ruler-proxy-config/rules.yml",
"internalRulePath": "/vmalert-config/rules.yml",
"namespace": "vmalert"
},
"alertmanager": {
"url": "http://alertmanager:9093",
"configPath": "/alertmanager/alertmanager.yml"
}
}
```## Grafana Ruler API
https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#ruler
## License
This project uses the Apache 2.0 License. See the file called LICENSE.