OpenTelemetry Collector Custom Build

Make sure you have ocb in version v0.81.0 and go v1.19 or higher installed.

  1. Get OCB
go install go.opentelemetry.io/collector/cmd/builder@v0.81.0
  1. Generate all the collector build files
make genotelcontribcol
  1. Build the opentelemetry collector and check the components (output is ./cmd/otelcontribcol)
make otelcontribcol
./bin/otelcontribcol_linux_amd64 components
  1. Compile a rpm using fpm
make rpm-package