Prometheus Alert Manager | custom ML client to send alerts

24 views
Skip to first unread message

Samya Maiti

unread,
Dec 19, 2019, 10:39:33 PM12/19/19
to Prometheus Users
Hi All,

I am looking to 

1) Write a small business specific Machine learning models that will read time data from time series Prometheus
2) Trigger an alert in case a condition is encountered
3) Alert Manager should catch the alert and send notifications.

To the above, I am looking for a sample direct client that sends alert to Alert Manager in the required format. 
I did get this doc, but no example.

Any other option to approach this task is most welcome.

Regards,
Samya

Brian Brazil

unread,
Dec 20, 2019, 2:07:57 AM12/20/19
to Samya Maiti, Prometheus Users
On Fri, 20 Dec 2019 at 03:39, Samya Maiti <samya.m...@gmail.com> wrote:
Hi All,

I am looking to 

1) Write a small business specific Machine learning models that will read time data from time series Prometheus
2) Trigger an alert in case a condition is encountered
3) Alert Manager should catch the alert and send notifications.

To the above, I am looking for a sample direct client that sends alert to Alert Manager in the required format. 
I did get this doc, but no example.

Those docs should be sufficient to write a custom AM client, however usually you're best served by exposing metrics (or in this case possibly using the pushgateway) and having Prometheus alert on them as among other things you need to send an alert continuously not just as a one off.
 
--

Adarsh Kumar Pandey

unread,
Apr 12, 2020, 2:44:01 AM4/12/20
to Prometheus Users
Hie Brian first of all thanks for your contribution to Prometheus ...
I also had a similar need and I did read the documentation but I could not find the API endpoint where I need to do the POST ..like to reload we had /-/reload
Forgive me if the question seems a little basic.. I hope to hear from you.
Thanks.
Reply all
Reply to author
Forward
0 new messages