Point metricbeat haproxy collector to existing stats endpoint

Change-Id: I36e86746a851d48501bce7f91910761a08d20196
This commit is contained in:
Jonathan Rosser 2018-06-05 08:53:09 +00:00
parent 31c5b833ed
commit 62f9508df2
2 changed files with 4 additions and 1 deletions

View File

@ -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 --------------------------------

View File

@ -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