Improve RabbitMQ stats

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2019-08-08 17:21:07 +02:00 committed by Pierre-Yves Chibon
parent 1970806263
commit 33e777f8d8
2 changed files with 8 additions and 3 deletions

View file

@ -20,7 +20,9 @@
- hosts
- fas_client
- collectd/base
- collectd/rabbitmq
# RabbitMQ statistics are cluster-wide, only collect them on one member
- role: collectd/rabbitmq
when: inventory_hostname.startswith('rabbitmq03')
- rsyncd
- sudo
- rabbitmq_cluster

View file

@ -4,11 +4,14 @@ LoadPlugin python
Interactive false
Import "collectd_rabbitmq.collectd_plugin"
<Module "collectd_rabbitmq.collectd_plugin">
Username "nagios-monitoring"
Password "{{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}"
Realm "RabbitMQ Management"
Host "localhost"
Port "15672"
Ignore "^federation:"
{% if env != 'production' %}
VHostPrefix "stg_"
{% endif %}
</Module>
</Plugin>
</Plugin>