We're using amqplib to publish/consume messages. I want to be able to read the number of messages on a queue (ideally both acknowledged and unacknowledged). This will allow me to show a nice status diagram to the admin users and detect if a certain component is not keeping up with the load.
I can't find any information in the amqplib docs about reading queue status.
Can someone point me in the right direction?
Using pika:
Using PyRabbit:
Using HTTP
Syntax:
Example:
Note: Default vhost is
/
which needs to be escaped as%2f
Using CLI: