Skip to content

Commit

Permalink
Fixed "make package" for metribeat based community beats
Browse files Browse the repository at this point in the history
metricbeat-win.yml and metricbeat-win.full.yml are modified only if BEATNAME is "metricbeat"

Fixes elastic#3296
  • Loading branch information
fjgal committed Jan 6, 2017
1 parent 5b973a0 commit f58d987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metricbeat/Makefile
Expand Up @@ -56,12 +56,13 @@ imports:
# This is called by the beats packer before building starts
.PHONY: before-build
before-build:
ifeq ($(BEATNAME), metricbeat)
# 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

endif
# Runs all collection steps and updates afterwards
.PHONY: collect
collect: fields collect-docs configs kibana imports
Expand Down

0 comments on commit f58d987

Please sign in to comment.