From 42603ab1129baa0b34b395b6996bede284630012 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Sat, 25 Aug 2018 00:02:00 -0500 Subject: [PATCH] When collecting KVM data use a local connection The KVM collector would attempt to use a network connection which normally results in failure. This changes the collector to use a file system socket by default. Change-Id: Id1698a95644c6a6d5102e371a7266794196393c8 Signed-off-by: Kevin Carter --- .../roles/elastic_metricbeat/templates/metricbeat.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 b/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 index d8fdf8d2..f997c801 100644 --- a/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 +++ b/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 @@ -335,7 +335,7 @@ metricbeat.modules: metricsets: ["dommemstat"] enabled: true period: 10s - hosts: ["localhost"] + hosts: ["unix:///var/run/libvirt/libvirt-sock"] # Timeout to connect to Libvirt server #timeout: 1s