8

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 ?

1 Answer 1

5

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

{
    "consumers": 0,
    "consumer_details": [],
    "name": "Liquid.RPC.Debug",
}
1
  • There should, but what if there is not ?
    – jpic
    May 26, 2014 at 18:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .