This repository holds a sample for using the OpenTelemetry Collector Builder configured with components generally useful for GCP deployments.
To build a custom collector with this repo, first edit builder-config.yaml
to set which
exporters and receivers to build into the collector.
Then to build a local collector binary run:
make build
Or build a docker image with:
make docker-build
This repo also contains the commands necessary to build a collector using Cloud Build and publish the container image in Artifact Registry.
First, set up a container registry with:
make cloudbuild-setup
Then build and push the custom collector image to that registry with:
make cloudbuild
The Cloud Build steps are defined in cloudbuild.yaml
.
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.