RabbitmqNoConsumer #
Queue has no consumer
Alert Rule
alert: RabbitmqNoConsumer
annotations:
description: |-
Queue has no consumer
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/kbudde-rabbitmq-exporter/rabbitmqnoconsumer/
summary: RabbitMQ no consumer (instance {{ $labels.instance }})
expr: rabbitmq_queue_consumers == 0
for: 1m
labels:
severity: critical
Here is a sample runbook for the RabbitmqNoConsumer alert:
Meaning #
The RabbitmqNoConsumer alert is triggered when a RabbitMQ queue has no consumers. This means that messages are not being processed from the queue, which can lead to a backlog of messages and potentially cause issues with application functionality.
Impact #
The impact of this alert can be significant, as it can cause:
- Message processing delays or failures
- Increased queue length, potentially leading to performance issues or even node crashes
- Potential data loss or corruption if messages are not processed correctly
- Impact on dependent applications or services that rely on the RabbitMQ queue
Diagnosis #
To diagnose the issue, follow these steps:
- Check RabbitMQ queue status: Log in to the RabbitMQ management UI and check the status of the affected queue.
- Verify consumer configuration: Check the configuration of the consumer application or service to ensure it is correctly configured to consume from the queue.
- Check consumer logs: Review the consumer application logs to see if there are any error messages related to connecting to the RabbitMQ queue.
- Check RabbitMQ node status: Verify that the RabbitMQ node is running and healthy.
Mitigation #
To mitigate the issue, follow these steps:
- Restart the consumer application: Restart the consumer application or service to re-establish the connection to the RabbitMQ queue.
- Check and update consumer configuration: Verify and update the consumer configuration to ensure it is correctly set up to consume from the queue.
- Check RabbitMQ node status: Verify that the RabbitMQ node is running and healthy, and take corrective action if necessary.
- Monitor queue status: Closely monitor the queue status to ensure the issue is resolved and the queue is processing messages correctly.
Additional resources: