Skip to content

nimbushq/otel-validator

Repository files navigation

OTEL Validator

OTEL Validator is a tool for validating your otel-collector configuration.

It supports autocomplete of fields, inline documentation, and validation of the your otel configuration.

Features

Autocomplete

Intellisense for all components and properties

autocomplete

Inline Documentation

Documentation for supported configurations

inline docs

Config Validation

Real time validation of fields

config validation

Getting Started

Open up an otel-config. If you don't have one handy, feel free to copy and paste the following example into a new file: "otel-config.yaml".

NOTE: currently, OTEL validator will automatically check all yaml files that match the prefix otel*

exporters:

  logging:
    verbosity: sda

  zipkin:
    endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
    format: proto

  jaeger:
    endpoint: jaeger-all-in-one:14250
    tls:
      insecure: true

processors:
  batch:
extensions:
  health_check:
  pprof:
    endpoint: :1888
  zpages:
    endpoint: :55679

service:
  extensions: [pprof, zpages, health_check]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [logging, zipkin, jaeger]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [logging, prometheus]

Limitations

  • doesn't currently support connectors
  • all components can be null - we currently don't detect whether a property is required or optional
  • durations are currently tread as strings. this means values like 5m_foobar will not be flagged

Acknowledgements

This extension makes use of the output of cfgmetadatagen which extracts configuration metadata from various collector components.