
This simply takes any json files present and loads them into Grafana directly. The idea is that you can edit the dashboards using the inbuilt editor, then copy the dashboard JSON and keep it externally version controlled. No parsing or validation is done on the JSON files; we are assuming they have not been hand-modified from what Grafana generates. Change-Id: I38695aed2404f8b7fc350d949b7a9212498c35cb
1.0 KiB
1.0 KiB
grafana-dashboard
SYNOPSIS
grafana-dashboard
[options] <command>
[<args>...]
DESCRIPTION
grafana-dashboard
is a CLI command to update Grafana
dashboards from yaml files.
OPTIONS
-h, --help Show this help message and exit --config-file CONFIG Path to a config file to use. The default files used is: /etc/grafyaml/grafyaml.conf --debug Print debugging output (set logging level to DEBUG instead of default INFO level) --version Show program's version number and exit
COMMANDS
Delete Command
grafana-dashboard
[options] delete <path>
Delete each specified dashboard from the parsed yaml files.
Update Command
grafana-dashboard
[options] update <path>
Updates each specified dashboard to the lastest layout from parsed yaml or json files.
FILES
/etc/grafyaml/grafyaml.conf