Improve RabbitMQ stats
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
1970806263
commit
33e777f8d8
2 changed files with 8 additions and 3 deletions
|
@ -20,7 +20,9 @@
|
||||||
- hosts
|
- hosts
|
||||||
- fas_client
|
- fas_client
|
||||||
- collectd/base
|
- collectd/base
|
||||||
- collectd/rabbitmq
|
# RabbitMQ statistics are cluster-wide, only collect them on one member
|
||||||
|
- role: collectd/rabbitmq
|
||||||
|
when: inventory_hostname.startswith('rabbitmq03')
|
||||||
- rsyncd
|
- rsyncd
|
||||||
- sudo
|
- sudo
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
|
|
|
@ -4,11 +4,14 @@ LoadPlugin python
|
||||||
Interactive false
|
Interactive false
|
||||||
Import "collectd_rabbitmq.collectd_plugin"
|
Import "collectd_rabbitmq.collectd_plugin"
|
||||||
<Module "collectd_rabbitmq.collectd_plugin">
|
<Module "collectd_rabbitmq.collectd_plugin">
|
||||||
|
|
||||||
Username "nagios-monitoring"
|
Username "nagios-monitoring"
|
||||||
Password "{{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}"
|
Password "{{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}"
|
||||||
Realm "RabbitMQ Management"
|
Realm "RabbitMQ Management"
|
||||||
Host "localhost"
|
Host "localhost"
|
||||||
Port "15672"
|
Port "15672"
|
||||||
|
Ignore "^federation:"
|
||||||
|
{% if env != 'production' %}
|
||||||
|
VHostPrefix "stg_"
|
||||||
|
{% endif %}
|
||||||
</Module>
|
</Module>
|
||||||
</Plugin>
|
</Plugin>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue