akrzos/collectd-rabbitmq-monitoring

set vhost for queus in message_count

Opened this issue · 1 comments

First of all, it is a great plugin and i am enjoying of using it.
I have a question of feature request: Is it possible to set vhost variable for queues list which specified in message_count. it would be the best to allow to set it per queue (like "vhost/queue_name") but ability to override default vhost / will be also good enough.
Regards Vladimir

Hi Vladimir,

Thanks for the positive feedback.

Is it possible to set vhost variable for queues list which specified in message_count. it would be the best to allow to set it per queue (like "vhost/queue_name") but ability to override default vhost / will be also good enough.

Looking at pyrabbit api for get_messages we need change the plugin to support a different vhost or allow a per-queue configurable vhost. This doesn't look difficult other than deciding upon how to expose that configuration and testing it. I'll see about an implementation in the near future. However to help you now if you just need to change from the default vhost ('/'), change this line in the code to the vhost you need.

Thanks,

Alex