I'm new to OpenTelemetry and trying out building locally for now. I'm following the guide in the Local section here.
Running the following works flawlessly:
git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
make install-tools
make otelcorecol
./bin/otelcorecol_* --config ./examples/local/otel-config.yaml
It works! Yay!
But I want to build the OpenTelemetry Collector Contrib instead of just the OpenTelemetry Collector. So I'm trying:
git clone https://github.com/open-telemetry/opentelemetry-collector-contrib.git
cd opentelemetry-collector-contrib
make install-tools
make otelcorecol
...but here I get the following error: make: *** No rule to make target 'otelcorecol'. Stop.
I want to build the Contrib-version because I want to use the file-exporter, which is not included in the non-Contrib-version, as far as I know.
I'm on macOS.
Any help would be very much appreciated! :-)
The corresponding make
target for opentelemetry-collector-contrib is otelcontribcol
, so you'll have to run this instead:
make otelcontribcol