[JSON Schema](https://json-schema.org/) for the OTEL Collector YAML configuration file.
APACHE-2.0 License
There is a proposal and work-in-progress PR for generating the component config from the YAML or JSON Schema here. I am not working on perfecting this, but it was a fun and good learning experience
This repository contains the JSON Schema for the OTEL Collector YAML configuration file.
The schema is available at https://raw.githubusercontent.com/srikanthccv/otelcol-jsonschema/main/schema.json. Many popular editors and IDEs support YAML validation against a JSON Schema. For example, in VS Code, you can add the following to your settings.json
:
"yaml.schemas": {
"https://raw.githubusercontent.com/srikanthccv/otelcol-jsonschema/main/schema.json": "otel-collector-config.yaml"
}
See https://github.com/redhat-developer/yaml-language-server#clients for other choices.
Any contributions are welcome. Please open an issue or a pull request.
To authors of https://github.com/invopop/jsonschema, which is modified to make it work with the OTEL Collector Config types.