docsgen

command
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

Docsgen CLI Tool

This package contains a CLI tool that generates markdown files for collector components. The markdown files present the configuration metadata extracted by the configschema API in a human readable form that can be used to manually configure the collector.

Usage

There are two modes of operation, one where markdown files are created for all components, and another where a markdown file is created for only one, specified component.

All components
docsgen all

Creates config.md files in every directory corresponding to a component configuration type.

Single component
docsgen component-type component-name

Creates a single config.md files in the directory corresponding to the specified component.

Usage Example

To create a config doc for the otlp receiver, use the command

docsgen receiver otlp

This creates a file called config.md in receiver/otlpreceiver.

Output Example

OTLP Receiver Config Metadata Doc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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