Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 845 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 845 Bytes

gdb2cm

Convert a grafana dashboard json files into a k8s ConfigMap.

build

go build

run

usage: main --file.dashboard=FILE.DASHBOARD [<flags>]

Flags:
      --help               Show context-sensitive help (also try --help-long and --help-man).
  -f, --file.dashboard=FILE.DASHBOARD
                           Grafana dashboard JSON file to convert.
  -o, --file.output=""     Output file for the dashboard configmap.
  -c, --file.compact       Output file with compact JSON embedded in ConfigMap.
  -n, --dashboard.name=""  Dashboard configmap name. (Default: dashboard file basename)
  -a, --k8s.annotations=K8S.ANNOTATIONS ...
                           Add an annotation to add the dashboard configmap (key=value)
  -N, --k8s.namespace="monitoring"
                           kubernetes namespace for the configmap.