Skip to content

Commit

Permalink
Fix default Metricbeat config on Windows (elastic#2632)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tsg authored and Tudor Golubenco committed Sep 23, 2016
1 parent 1ccc0a2 commit 252408b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metricbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 252408b

Please sign in to comment.