Skip to content

Commit

Permalink
Fix default Metricbeat config on Windows (#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 ruflin committed Sep 23, 2016
1 parent 5becd1d commit dd43dd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metricbeat/Makefile
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 dd43dd1

Please sign in to comment.