FreeKB - RabbitMQ List Queues using the rabbitmqadmin command
RabbitMQ - List Queues using the rabbitmqadmin command

This assumes you have downloaded and setup the rabbitmqadmin command line tool.

The rabbitmqadmin command with the list queues option can be used to list a virtual hosts queues. Or, the rabbitmqctl list_queues command can be used. Or, the curl command can be used.

rabbitmqadmin list queues

 

Which should produce something like this.

+-------------------------------------------------------------+----------+
|                            name                             | messages |
+-------------------------------------------------------------+----------+
| queue001                                                    | 0        |
| queue002                                                    | 378      |
+-------------------------------------------------------------+----------+

 

You can specify the items you wish to include in the output, like this.

rabbitmqadmin list queues messages name vhost

 

Which should produce something like this.

+----------+-------------------------------------------------------------+-------+
| messages |                            name                             | vhost |
+----------+-------------------------------------------------------------+-------+
| 0        | queue001                                                    | /     |
| 378      | queue002                                                    | /     |
+----------+-------------------------------------------------------------+-------+

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 6e047 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |