-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Hi,
I would like to suggest extending the message queue sensor to support virtual host configuration.
Ex:
sensor_config:
host: "rabbitmq"
vhost: "dev"
username: "developer"
password: "developer"
rabbitmq_queue_sensor:
queues:
- "sample_queue"
deserialization_method: "json"
A simple change on queues_sensor.py will handle this improvement.
++ self.vhost = self._config['sensor_config']['vhost']
++ connection_params = pika.ConnectionParameters(host=self.host, credentials=credentials, virtual_host=self.vhost)
Thank you,
Luciano