From 102c431b5cf601e869156955ef56d608084ce9e7 Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Fri, 23 Sep 2016 13:57:23 +0200 Subject: [PATCH] Fix default Metricbeat config on Windows The load metricset is not supported on Windows, and if it's enabled in the configuration file, it makes Metricbeat exit immediately with an error. This change adjusted the configuration on Windows to exclude the load metricset. Fixes 2623. --- metricbeat/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/metricbeat/Makefile b/metricbeat/Makefile index d0c8ec893e2..93d58a80a5f 100644 --- a/metricbeat/Makefile +++ b/metricbeat/Makefile @@ -57,6 +57,11 @@ imports: # This is called by the beats packer before building starts .PHONY: before-build before-build: + # disable the system/load metricset on windows + sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.yml + rm $(PREFIX)/metricbeat-win.yml.bk + sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.full.yml + rm $(PREFIX)/metricbeat-win.full.yml.bk # Runs all collection steps and updates afterwards .PHONY: collect