Dockbeat is an open source project and we love to receive contribution from the community!
You can contribute to Dockbeat by many ways:
- write documentation, tutorial, blog posts
- submit bug reports, new github issues for bugs or new features
- implement new feature
Dockbeat is based on the Libbeat, an open source project managed by Elastic.
Dockbeat development environment is similar to other beats. Please read the official Beats CONTRIBUTING file
Ensure that this folder is at the following location:
${GOPATH}/github.com/ingensi
To build the binary for Dockbeat run the command below. This will generate a binary in the same directory with the name dockbeat.
make
To run Dockbeat with debugging output enabled, run:
./dockbeat -c dockbeat.yml -e -d "*"
To test Dockbeat, run the following command:
make testsuite
alternatively:
make unit-tests
make system-tests
make integration-tests
make coverage-report
The test coverage is reported in the folder ./build/coverage/
Each beat has a template for the mapping in elasticsearch and a documentation for the fields
which is automatically generated based on etc/fields.yml
.
To generate etc/dockbeat.template.json, etc/dockbeat.asciidoc and dockbeat.yml configuration file
make update
To ensure updating dockbeat-docker.yml
make fullupdate
To clean Dockbeat source code, run the following commands:
make fmt
make simplify
To clean up the build directory and generated artifacts, run:
make clean
To clone Dockbeat from the git repository, run the following commands:
mkdir -p ${GOPATH}/github.com/ingensi
cd ${GOPATH}/github.com/ingensi
git clone https://github.com/ingensi/dockbeat
For further development, check out the beat developer guide.