From eb73dd6e66c72d906f115a66750c7ac68f5459f8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 5 Jun 2018 08:56:37 +0000 Subject: [PATCH] Point metricbeat rabbitmq collector to existing rabbitmq endpoint Change-Id: I9511a1da1a031b4b05bbbb108386cd5b56fd96e9 --- elk_metrics_6x/templates/metricbeat.yml.j2 | 2 +- elk_metrics_6x/vars/variables.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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