diff --git a/elk_metrics_6x/templates/metricbeat.yml.j2 b/elk_metrics_6x/templates/metricbeat.yml.j2 index 78d75cd3..9a4684e7 100644 --- a/elk_metrics_6x/templates/metricbeat.yml.j2 +++ b/elk_metrics_6x/templates/metricbeat.yml.j2 @@ -423,7 +423,7 @@ metricbeat.modules: - module: rabbitmq metricsets: ["node", "queue"] period: 30s - hosts: ["localhost:5672", "localhost:5671", "localhost:15672", "localhost:15671"] + hosts: [ {{ elastic_metricbeat_rabbitmq_monitoring_hosts }} ] username: {{ rabbitmq_monitoring_userid | default('monitoring') }} password: {{ rabbitmq_monitoring_password }} # diff --git a/elk_metrics_6x/vars/variables.yml b/elk_metrics_6x/vars/variables.yml index b5e3c98a..46b8dca9 100644 --- a/elk_metrics_6x/vars/variables.yml +++ b/elk_metrics_6x/vars/variables.yml @@ -4,6 +4,7 @@ elk_repo: state: "{{ elk_package_state | default('present') }}" #metricbeats monitoring endpoints +elastic_metricbeat_rabbitmq_monitoring_hosts: '"localhost:15672"' elastic_metricbeat_haproxy_monitoring_hosts: '"unix:///var/run/haproxy.stat"' # elastic search vars