API for Alert creation in Prometheus

13 views
Skip to first unread message

vikram yerneni

unread,
May 12, 2020, 12:46:31 PM5/12/20
to Prometheus Users
Fellas,
I am using Prometheus and Prometheus-Alertmanager for our in-house Metrics setups and I am wondering if there is a way to create/generate/config/manage alerts in Prometheus through an API call?
I am trying to setup a new instance setup here and it will be from the scratch.

Please do let me know

Cheers!
Vikram

Brian Candler

unread,
May 12, 2020, 2:37:28 PM5/12/20
to Prometheus Users
No.  You need a configuration management tool to write out the alerting rules in yaml, and then you signal prometheus to reload its configuration.

vikram yerneni

unread,
May 12, 2020, 3:38:35 PM5/12/20
to Prometheus Users
Thanks Brian for the reply here. Will use Ansible for the same then...
Reply all
Reply to author
Forward
0 new messages