From 62f9508df24be4c281fc88af78f065d1843cba35 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 5 Jun 2018 08:53:09 +0000 Subject: [PATCH] Point metricbeat haproxy collector to existing stats endpoint Change-Id: I36e86746a851d48501bce7f91910761a08d20196 --- elk_metrics_6x/templates/metricbeat.yml.j2 | 2 +- elk_metrics_6x/vars/variables.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/elk_metrics_6x/templates/metricbeat.yml.j2 b/elk_metrics_6x/templates/metricbeat.yml.j2 index a9cb1662..78d75cd3 100644 --- a/elk_metrics_6x/templates/metricbeat.yml.j2 +++ b/elk_metrics_6x/templates/metricbeat.yml.j2 @@ -213,7 +213,7 @@ metricbeat.modules: - module: haproxy metricsets: ["info", "stat"] period: 30s - hosts: ["tcp://127.0.0.1:14567"] + hosts: [ {{ elastic_metricbeat_haproxy_monitoring_hosts }} ] # {% endif %} ##-------------------------------- HTTP Module -------------------------------- diff --git a/elk_metrics_6x/vars/variables.yml b/elk_metrics_6x/vars/variables.yml index 01d2e07d..b5e3c98a 100644 --- a/elk_metrics_6x/vars/variables.yml +++ b/elk_metrics_6x/vars/variables.yml @@ -3,6 +3,9 @@ elk_repo: repo: 'deb https://artifacts.elastic.co/packages/6.x/apt stable main' state: "{{ elk_package_state | default('present') }}" +#metricbeats monitoring endpoints +elastic_metricbeat_haproxy_monitoring_hosts: '"unix:///var/run/haproxy.stat"' + # elastic search vars elastic_port: 9200 elastic_hap_port: 9201