The following code is what I use to get a count of number of consumers :
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(host='IP ADDRESS'))
channel = connection.channel()
this=channel.queue_declare(queue="Queue_name",passive=True)
print this.method.consumer_count
Now the count that I obtain are the number of active consumers. However, when consumers are consuming from the queue, this count is printed as zero. Now I need the total number of consumers consuming from the queue. This appears RabbitMQ Management (as consumers : 0 active 25 Total)
Is there a way to obtain a count of the total number of consumers consuming from a queue, while there are messages in the queue?
Thank you in advance