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": {
"url": "http:https://prometheus:9090",
"rulePath": "/grafana-ruler-proxy-config/rules.yml",
"internalRulePath": "/config/rules.yml",
"namespace": "prometheus"
},
"alertmanager": {
"url": "http:https://alertmanager:9093",
"configPath": "/alertmanager/alertmanager.yml"
}
}
{
"prometheus": {
"url": "http:https://victoriametrics:8428",
"rulesUrl": "http:https://vmalert:8880",
"rulePath": "/grafana-ruler-proxy-config/rules.yml",
"internalRulePath": "/vmalert-config/rules.yml",
"namespace": "vmalert"
},
"alertmanager": {
"url": "http:https://alertmanager:9093",
"configPath": "/alertmanager/alertmanager.yml"
}
}
https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/#ruler
This project uses the Apache 2.0 License. See the file called LICENSE.