Is there a way to get the size (remaining messages) of a queue in rabbitmq with a simple Curl?
Something like curl -xget http://host:1234/api/queue/test/stats
curl -xget http://host:1234/api/queue/test/stats
Use HTTP API from Management Plugin.
It looks you may benefit from /api/queues/(vhost)/(name) one. The output is in plain json, so you won't miss messages field (and related).
/api/queues/(vhost)/(name)
messages