otel-config-validator
Experimental OpenTelemetry Collector Configuraton Validator. Work-in-progress, currently supports usage:
Development: Quick start (WebAssembly)
$ make
# run local server
$ go run cmd/server/main.go
# open a browser to validate using an HTML form
$ open http://127.0.0.1:8100
How it works
Runs validation on partial subset of exporters, receivers, and processors are supported for now. See components.go
for full list.
In WebAssembly, some components are not supported because they cannot compile to wasm.
CLI mode
The validator can be built as a command line utility:
# build cli
$ go build -o otel-config-validator ./cmd/cli/main.go
#run cli against otel config file
$ ./otel-config-validator -f /path/to/config
Output:
OpenTelemetry Collector Configuration file `test-adot.yml` is valid.
Pipeline metrics:
Receivers: [otlp]
Processors: []
Exporters: [logging]
Pipeline traces:
Receivers: [otlp]
Processors: []
Exporters: [awsxray]