otelcol-contrib validate --config=<file>
otelcol-contrib validate --config=<file>
Risk: Safe
What it does
Checks an OpenTelemetry Collector config without starting it. No output means it is fine.
When to use it
After you change receivers, exporters or pipelines.
Example
$ docker run --rm -v "$PWD:/w" otel/opentelemetry-collector-contrib:0.164.0 validate --config=/w/config.yamlIs my Collector config sound? Run it from the official image.
Learn it in: OpenTelemetry: SDK, collector, OTLP · Official docs