How to dynamically add alerts rules in rules.conf and Prometheus yml file via API or something in Prometheus?
I have added Prometheus stack for monitoring Rancher server. I have tried configuring alerts in Prometheus stack by manually, it worked.
Now I want to add the rules to prom-conf and configure web hooks in alert manager config yml file dynamically. Is there anyway I can do that?? Do they have API for this scenario?