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
|
||||
- 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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue