OpenTelemetry Collector Components is a collection of components of the OpenTelemetry Collector that were created at Elastic.
See CODE_OF_CONDUCT.
This software is licensed under the Apache 2 license.
In order to build a collector with a custom component, e.g. for testing purposes, follow these steps:
processors
section.replace
section, pointing to the local path of
the component's source.genelasticcol
target of the root Makefile.
Make sure to provide GOOS
and/or GOARCH
environment variables if you are building for a different platform.
For example, when building on macOS in order to run through the Linux Docker image that is built by the builddocker
make target
(see next bullet) - use the following command:
GOOS=linux CGO_ENABLED=0 make genelasticcol
The resulting binary will be placed in the _build
directory.
builddocker
target of the root Makefile.
This target requires the environment variable TAG
to be set. The resulting image will be tagged as elastic-collector-components:<TAG>
.
You may also specify the USERNAME
environment variable to name the image as <USERNAME>/elastic-collector-components:<TAG>
. For example:
make builddocker TAG=v0.1.0 USERNAME=johndoe