To create a new Organization and VCS, call the grafana-create-orgs.sh script
If you want to add at startup, instead add them to the
values.yaml
undergrafana.orgs
.
Call the script like:
grafana-create-orgs.sh <ADMINUSER> <ADMINPASS> <umbrella-chart-name> <grafana-server> <dashboard-folder> orgs...
e.g.
PATH=$PATH:. grafana-create-orgs.sh admin Ts8k0hvsZZD058JsqOl8w332YUNs8GAAEpYWCmJu aether-roc-umbrella localhost:8183/grafana \ ../dashboards/vcs "siemens[siemens-munich-cameras siemens-mannheim-cameras siemens-mannheim-labs]"
cd in to this scripts
directory
specify the Org and VCS's like "org1[vcs1 vcs2]" "org2[vcs1 vcs2]"
To get the Grafana password use
kubectl get secret --namespace micro-onos aether-roc-umbrella-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
Port forward aether-roc-gui
to get grafana on localhost:8183/grafana
kubectl -n micro-onos port-forward $(kubectl -n micro-onos get pods -l type=arg -o name) 8183:80