VMware Cloud Community
NigelHarris
Contributor
Contributor
Jump to solution

AMQP Queue Length

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,

Reply
0 Kudos
1 Solution

Accepted Solutions
jvassev
Contributor
Contributor
Jump to solution

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)

View solution in original post

Reply
0 Kudos
3 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
jvassev
Contributor
Contributor
Jump to solution

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)

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Nice solution Julian ! I was not aware of the web management plug-in. Definitely something to consider.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Reply
0 Kudos