/otel-config-validator

Validates collector config via a WebAssembly<->Go bridge

Primary LanguageGoApache License 2.0Apache-2.0

otel-config-validator

Experimental OpenTelemetry Collector Configuraton Validator. Work-in-progress, currently supports usage:

  • CLI

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]