Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can get the number of consumers using rabbitmqctl as such:

# rabbitmqctl list_queues name consumers  | grep q-firewall-plugin
q-firewall-plugin   2

But when using the API url:

/api/queues/%2F/q-firewall-plugin

It responds with:

{
    "consumer_details":[],
    "name":"q-firewall plugin",
    "vhost":"/",
    "durable":true, 
    "auto_delete":false,
    "arguments":{"x-ha-policy":"all"},
    "node":"rabbit@infra-rabbitmq-2"
}

I was expecting to see a couple of consumers in consumer_details. What am I doing wrong ?

share|improve this question

1 Answer 1

There should be another field called consumers which gives you the count.

{
    "consumers": 0,
    "consumer_details": [],
    "name": "Liquid.RPC.Debug",
}
share|improve this answer
    
There should, but what if there is not ? –  jpic May 26 at 18:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.