otel-config-validator

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: Apache-2.0

README

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]

Directories

Path Synopsis
cmd
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL