Notification when a queue has no more consumers

138 views
Skip to first unread message

Joseph Arturo Pena Quino

unread,
Feb 16, 2023, 3:51:10 PM2/16/23
to rabbitmq-users
Hello!

I'm working in a IoT application with AMQP and RabbitMQ where multiple nodes act as producers and consumers. 
When my nodes loose internet connection I can notice that from the RabbitMQ server because their queues has no more consumers.
I want to know if there is some kind of mechanism to trigger a notification or a script when a queue 0 consumers.

Thanks,
Joseph Pena

Michal Kuratczyk

unread,
Feb 17, 2023, 2:12:05 AM2/17/23
to rabbitm...@googlegroups.com
Hi,

Here's an example Prometheus/Altertmanager rule to alert about a queue without consumers:

Best,

La información contenida en este e-mail y sus anexos es confidencial, privilegiada y está dirigida exclusivamente a su destinatario, en consecuencia, solo puede ser utilizada por aquel. Si usted no es el destinatario original, no deberá examinar, usar, copiar o distribuir este mensaje o la información que contiene. Si lo recibe por error, por favor reenvíelo a la persona que se lo envió y elimínelo. Cualquier retención o uso total o parcial no autorizada de este mensaje está estrictamente prohibida y sancionada por ley.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/dc619afe-e1fa-4e2b-bbc3-5020656e0ec4n%40googlegroups.com.


--
Michał
RabbitMQ team

Puneet Aggarwal

unread,
Feb 17, 2023, 8:28:44 AM2/17/23
to rabbitm...@googlegroups.com
How can we implement alerts?

Thank you,
PA

Michal Kuratczyk

unread,
Feb 17, 2023, 8:49:06 AM2/17/23
to rabbitm...@googlegroups.com
That repo contains examples of alerts, so I'm not sure what else we can provide.
The actual alerting is out of scope for RabbitMQ. In those examples, we assume Alertmanager from the Prometheus ecosystem, but any alert system should be able to do something similar.



--
Michał
RabbitMQ team

Puneet Aggarwal

unread,
Feb 17, 2023, 9:59:37 AM2/17/23
to rabbitm...@googlegroups.com
Thank you, Michael 

Sent from my iPhone

On Feb 17, 2023, at 7:49 AM, Michal Kuratczyk <mkura...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages