Here are the steps to take to get consumer on your RabbitMQ cluster:
Using the rabbitmqctl command:
1. SSH into one of the RabbitMQ server nodes
bosh ssh -d <RabbitMQ-OD-Service-Instance> rabbitmq-server/0
2. Get consumer stats by running
for i in $(rabbitmqctl list_vhosts); do echo vhost: $i && rabbitmqctl list_queues list_queues name type messages messages_ready consumers consumer_utilization -p $i ; done
Using the RabbitMQ Management UI
1. Access your Service Instance Management UI
2. Once logged in. Go to Queues Tab and click on specific queue that has high message rate. This will give you a page that looks like screenshot below. Under Details Section it will give you consumer and consumer utitlization values.
Notes on consumer and consumer_utilization value:
If your consumer has a value of zero this means that there are no application consuming messages in queue. If you see a low value on your consumer_utilization this means that your consumers are slow, please see our docs on how to find bottlenecks.