Skip to content

Commit 252408b

Browse files
tsgTudor Golubenco
authored and
Tudor Golubenco
committed
Fix default Metricbeat config on Windows (elastic#2632)
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.
1 parent 1ccc0a2 commit 252408b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

metricbeat/Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ imports:
5757
# This is called by the beats packer before building starts
5858
.PHONY: before-build
5959
before-build:
60+
# disable the system/load metricset on windows
61+
sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.yml
62+
rm $(PREFIX)/metricbeat-win.yml.bk
63+
sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.full.yml
64+
rm $(PREFIX)/metricbeat-win.full.yml.bk
6065

6166
# Runs all collection steps and updates afterwards
6267
.PHONY: collect

0 commit comments

Comments
 (0)