You can build the collector on z/OS from the source by following the steps below:
To build the collector, you need GNU make and go v1.21.11. You can find and install them using the links below:
Compile the opentelemetry collector repository using the following commands:
git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
gmake install-tools
gmake otelcorecol
This will generate the collector executable in the bin
directory.
Currently, the collector does not run without turning off metric collection. To disable metric collection, set the metrics level to none
in the config file. An example config file is shown below:
receivers:
otlp:
protocols:
grpc:
http:
exporters:
debug:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [debug]
telemetry:
metrics:
level: none
Run the collector using the executable and the config file:
./bin/<name of the executable> --config=<path to config file>
Replace '' with the path to your config file.