I'd like to create a simple script that will return the length of all defined AMQP queues for a given broker. Is there a method to get a AMQP queue length via the AMQP Plugin VCO ?
thanks,
Management and monitoring are not part of the AMQP standard. That's way they are not part of the plugin. However all vendors provide some kind of management or monitoring API. If you are using RabbitMQ you can enable the management plugin as described at http://www.rabbitmq.com/management.html.
Then you can use the HTTP-REST plug-in to query the api endpoint served by the management plugin (http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_8_2/priv/www/api/index.html)
No I do not think this exists in the plug-in or in the API (but I did not check). I had requested adding some features similar to the command line tool but I was told the API was not exposing these. Now if you find it in the API documentation a feature request for a new release is something possible.
Christophe.
Management and monitoring are not part of the AMQP standard. That's way they are not part of the plugin. However all vendors provide some kind of management or monitoring API. If you are using RabbitMQ you can enable the management plugin as described at http://www.rabbitmq.com/management.html.
Then you can use the HTTP-REST plug-in to query the api endpoint served by the management plugin (http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_8_2/priv/www/api/index.html)
Nice solution Julian ! I was not aware of the web management plug-in. Definitely something to consider.
Christophe.