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