Skip to content

Commit

Permalink
Fixed "make package" for metribeat based community beats (elastic#3297)
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 authored and ruflin committed Jan 6, 2017
1 parent 2f45cd3 commit 7b314a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metricbeat/Makefile
Original file line number Diff line number Diff line change
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 7b314a5

Please sign in to comment.