-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module infrastructure to X-Pack Metricbeat (#9242)
So far it was not possible to add modules to X-Pack Metricbeat as all the automation was not in place. With this change new modules can be added, fields.go are generated and config files are updated. There are still things missing like the docs collection.
- Loading branch information
Showing
21 changed files
with
2,535 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
FROM golang:1.11.2 | ||
MAINTAINER Nicolas Ruflin <ruflin@elastic.co> | ||
FROM golang:1.10.3 | ||
|
||
RUN set -x && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
netcat python-pip virtualenv && \ | ||
apt-get clean | ||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
netcat \ | ||
python-pip \ | ||
virtualenv \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade setuptools | ||
RUN pip install --upgrade docker-compose==1.21.0 | ||
|
||
# Setup work environment | ||
ENV METRICBEAT_PATH /go/src/github.com/elastic/beats/metricbeat | ||
|
||
RUN mkdir -p $METRICBEAT_PATH/build/coverage | ||
WORKDIR $METRICBEAT_PATH | ||
|
||
# Add healthcheck for docker/healthcheck metricset to check during testing | ||
# Add healthcheck for the docker/healthcheck metricset to check during testing. | ||
HEALTHCHECK CMD exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ES_BEATS ?= ../.. | ||
|
||
include $(ES_BEATS)/dev-tools/make/xpack.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '2.1' | ||
services: | ||
beat: | ||
build: ../../metricbeat | ||
environment: | ||
- TEST_ENVIRONMENT=false | ||
working_dir: /go/src/github.com/elastic/beats/x-pack/metricbeat | ||
volumes: | ||
- ${PWD}/../..:/go/src/github.com/elastic/beats/ | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: make |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.