[rabbitmq-discuss] How check for existing queue consumer

Simon MacMullen simon at rabbitmq.com
Wed Feb 12 17:21:43 GMT 2014


On 12/02/14 17:20, cw storm wrote:
> Besides the number of active queue consumer, can I get the actual name
> or value that's in the consumer tag?

Only via the mgmt API:

$ curl -i -u guest:guest 
http://localhost:15672/api/queues/%2f/test?columns=name,consumer_details.consumer_tag

HTTP/1.1 200 OK
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
Date: Wed, 12 Feb 2014 17:21:09 GMT
Content-Type: application/json
Content-Length: 87
Cache-Control: no-cache

{"consumer_details":[{"consumer_tag":"amq.ctag-shNahmeVJHaF-kS-OwgirA"}],"name":"test"}

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list