[rabbitmq-discuss] getting the queue depths

Ben Hood 0x6e6562 at gmail.com
Tue Feb 3 23:11:36 GMT 2009


Billy,

On Tue, Feb 3, 2009 at 4:38 AM, Billy Chasen <billy.chasen at gmail.com> wrote:
> I'm using py-amqplib and could not find a way to get the queue depth.
>
> I know I can get it from rabbitmqctl list_queues -- but that needs to
> be ran as either root or rabbitmq, otherwise I get an error
>
> Any way to programmatically get the queue depths?  I feel like there
> should be a call, chan.queue_size(name)

Have you had a look at the documentation for the queue.declare_ok command?

It will tell you what the message count is.

BTW, if you google this list for queue depth, you will find out how that works.

Also this pattern seems to be used a lot with the Ruby AMQP client.

HTH,

Ben




More information about the rabbitmq-discuss mailing list