What does monitoring the queue depth in RabbitMQ help you detect?
Think about what it means if many messages wait in the queue.
Queue depth is the count of messages waiting to be processed. A high queue depth means messages are not being consumed fast enough, which can indicate slow consumers or issues in processing.
Given the output below from rabbitmqctl list_queues name messages_ready messages_unacknowledged, what is the consumer lag?
queue1 10 5 queue2 0 0 queue3 3 7
rabbitmqctl list_queues name messages_ready messages_unacknowledged
Consumer lag is the sum of messages ready and unacknowledged.
Consumer lag is the total messages waiting to be processed (ready) plus those delivered but not yet acknowledged (unacknowledged). For queue1: 10 + 5 = 15.
Which Prometheus alert rule correctly triggers when RabbitMQ queue depth exceeds 1000 messages for more than 5 minutes?
Check the expression, threshold, and duration carefully.
The alert triggers if the queue depth metric is above 1000 for at least 5 minutes. Option A matches this exactly.
You notice consumer lag is high but the queue depth is low. What could cause this?
Think about what unacknowledged messages mean.
High consumer lag with low ready messages means messages are delivered but not acknowledged, indicating slow or stuck consumers.
Which sequence of steps correctly describes a workflow to alert on both queue depth and consumer lag in RabbitMQ?
Think about the logical order from data collection to resolution.
First collect metrics, then set alerts, notify team, and finally investigate.