Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 887 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 887 Bytes

gdashboard-cli

Generate Terraform files from Grafana JSON dashboard for gdashboard provider.

Usage

Usage: gdashboard-cli generate [--input <string>] [--dashboard-id <string>] [--group-by-sections] <The path to an output directory>

Generate Terraform files from a Grafana dashboard

Options and flags:
    --help
        Display this help text.
    --input <string>
        A path to the file with the JSON of a Grafana dashboard
    --dashboard-id <string>
        An ID of the Grafana dashboard (https://grafana.com/grafana/dashboards)
    --group-by-sections
        Whether to group files by dashboard sections or not

Publish locally

$ sbt generateNativeBinary
$ gdashboard-cli generate --input ./input.json ./output
$ gdashboard-cli generate --dashboard-id 123 ./output