RabbitMQ - Get total count of messages enqueued

前端 未结 3 915
感情败类
感情败类 2020-12-06 16:46

I have a Java client which monitors RabbitMQ queue. I am able to get the count of messages currently in queue with this code

@Resource
RabbitAdmin rabbitAdmi         


        
3条回答
  •  太阳男子
    2020-12-06 17:02

    To access queue details via http api,

    http://public-domain-name:15672/api/queues/%2f/queue_name

    To access queue details via command from localhost cli promt,

    curl -i -u guest_uname:guest_password http://localhost:15672/api/queues/%2f/queue_name

    Where, %2f is default vhost "/"

提交回复
热议问题