Does anyone has any idea about any possibility for sending alerts to kafka

60 views
Skip to first unread message

Adarsh Kumar Pandey

unread,
Apr 7, 2020, 11:44:22 AM4/7/20
to Prometheus Users
Hie Im new to prometheus and I need your expert advice on whether we can have alerts from alertmanager sent to kafka for facilitating some model where I can get the data about the alerts fired , in addition to having the alerts as email or sms ...
Thanks for your time !!

Matthias Rampke

unread,
Apr 7, 2020, 11:57:49 AM4/7/20
to Adarsh Kumar Pandey, Prometheus Users
This is a good use case for webhook receivers. I am not finding any specifically for this case; basically, you need something that accepts the body on HTTP and submits a message to Kafka.

My guess is that it may be easier to solve in a few lines of code that do exactly what you need using the language and libraries of your choice, than trying to bend a generic solution to your will.

/MR

On Tue, Apr 7, 2020 at 3:44 PM Adarsh Kumar Pandey <adarshof...@gmail.com> wrote:
Hie Im new to prometheus and I need your expert advice on whether we can have alerts from alertmanager sent to kafka for facilitating some model where I can get the data about the alerts fired , in addition to having the alerts as email or sms ...
Thanks for your time !!

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fa65c890-7e39-46a2-9c47-7f7e528b0328%40googlegroups.com.

Adarsh Kumar Pandey

unread,
Apr 7, 2020, 12:01:42 PM4/7/20
to Prometheus Users
If you have a alertmanager-kafka-producer for this and if you could share that with us it would be great and we all will be humbled by your generosity .

Adarsh Kumar Pandey

unread,
Apr 7, 2020, 1:02:01 PM4/7/20
to Prometheus Users
sure I will try to do that .. and thanks for the reply I really appreciate the response !

On Tuesday, 7 April 2020 21:27:49 UTC+5:30, Matthias Rampke wrote:
This is a good use case for webhook receivers. I am not finding any specifically for this case; basically, you need something that accepts the body on HTTP and submits a message to Kafka.

My guess is that it may be easier to solve in a few lines of code that do exactly what you need using the language and libraries of your choice, than trying to bend a generic solution to your will.

/MR

On Tue, Apr 7, 2020 at 3:44 PM Adarsh Kumar Pandey <adarshof...@gmail.com> wrote:
Hie Im new to prometheus and I need your expert advice on whether we can have alerts from alertmanager sent to kafka for facilitating some model where I can get the data about the alerts fired , in addition to having the alerts as email or sms ...
Thanks for your time !!

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

Jake Utley

unread,
Apr 7, 2020, 7:08:28 PM4/7/20
to Prometheus Users
While I haven't tried this myself, I bet you can get something working by running the Confluent REST Proxy and pointing Alertmanager to it via a webhook receiver.

Reply all
Reply to author
Forward
0 new messages