Saving alerts generated in a database for further procesing like offline querying and ML

16 views
Skip to first unread message

Adarsh Kumar Pandey

unread,
Apr 1, 2020, 11:18:02 PM4/1/20
to Prometheus Users
I wanted to store the alerts generated by prometheus into a separate database and I know that alertsnitch provides this feature but what if I want to use another database then how to do that?
Does prometheus logs the alerts firing internally and how to access that any idea?

Thanks and much Respect for your support guyz !!!

Matt Palmer

unread,
Apr 1, 2020, 11:38:31 PM4/1/20
to Prometheus Users
On Wed, Apr 01, 2020 at 08:18:02PM -0700, Adarsh Kumar Pandey wrote:
> I wanted to store the alerts generated by prometheus into a separate
> database and I know that alertsnitch provides this feature but what if I
> want to use another database then how to do that?
> Does prometheus logs the alerts firing internally and how to access that
> any idea?

Write a small service that accepts the HTTP requests that Prometheus sends
for alerts and writes them to a database of your choice, configure
Prometheus to send alerts to that service, job done.

- Matt

Adarsh Kumar Pandey

unread,
Apr 2, 2020, 1:15:46 AM4/2/20
to Prometheus Users
Thanks for the hint I will try that but I'm not much of a coder so I will have to learn to do that ..meanwhile if you could make my life easier by pointing me to the right direction I will be humbled by that.

Rgards,
Adarsh

Adarsh Kumar Pandey

unread,
Apr 2, 2020, 7:58:30 AM4/2/20
to Prometheus Users
Anyone has any other solutions for this please let me know
Thanks.

On Thursday, 2 April 2020 08:48:02 UTC+5:30, Adarsh Kumar Pandey wrote:
Reply all
Reply to author
Forward
0 new messages