Skip to content

Small utility to convert grafana dashboards to configmaps for prometheus-operator

Notifications You must be signed in to change notification settings

wy100101/gdb2cm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Small utility to convert grafana dashboards to configmaps for prometheus-operator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages