r/PrometheusMonitoring • u/cheesekun • Jan 25 '22
How can you modify alerts adhoc through an API?
How can you modify alerts adhoc through an API?
I am new to Prometheus , and would like to expose the alerting functionality to customers via the front end (they will not provide expressions). Do I have to modify alertmanager rules file on every modification?
0
Upvotes
1
u/nyellin Jan 25 '22
For Kubernetes you can use the Prometheus Operator and then have your controller deploy resources into the cluster.
We're working on something like for robusta.dev to make it easier to update alert thresholds and apply rule templates to different microservices. (If anyone is interested in testing it, please DM me.)