Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.25 KB

File metadata and controls

41 lines (25 loc) · 1.25 KB

promdoc

logo

Go Report Card GitHub release

promdoc automatically generates documentation from your PrometheusRules.

Installation

GO111MODULE=on go get github.com/plexsystems/promdoc

Binaries are also provided on the releases page.

Usage

promdoc will generate the output in the format that matches the output file.

For example, to generate markdown, run the following command in the root folder where you want promdoc to search for rules.

$ promdoc generate

Optionally, you can specify a directory to generate alerts for. This will look at the specified directory and its subdirectories:

$ promdoc generate alertsdirectory

To generate the output in CSV, include the .csv extension in the output:

$ promdoc generate --out alerts.csv

Supported output formats:

  • Markdown (.md)
  • CSV (.csv)