Collectd operator utilties
[demo.git] / vnfs / DAaaS / visualization / templates / NOTES.txt
1
2 *************************GRAFANA*********************************
3
4 1. Get your '{{ .Values.adminUser }}' user password by running:
5
6    kubectl get secret --namespace {{ .Release.Namespace }} {{ .Release.Name }}-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
7
8 2. {{ if .Values.ingress.enabled }}
9    From outside the cluster, the server URL(s) are:
10 {{- range .Values.ingress.hosts }}
11      http://{{ . }}
12 {{- end }}
13 {{ else }}
14    Get the Grafana URL to visit by running these commands in the same shell:
15 {{ if contains "NodePort" .Values.service.type -}}
16      export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "grafana.fullname" . }})
17      export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
18      echo http://$NODE_IP:$NODE_PORT
19 {{ else if contains "LoadBalancer" .Values.service.type -}}
20    NOTE: It may take a few minutes for the LoadBalancer IP to be available.
21         You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "grafana.fullname" . }}'
22      export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "grafana.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
23      http://$SERVICE_IP:{{ .Values.service.port -}}
24 {{ else if contains "ClusterIP"  .Values.service.type }}
25      export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app=grafana,release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
26      kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 3000
27 {{- end }}
28 {{- end }}
29
30 3. Login with the password from step 1 and the username: {{ .Values.adminUser }}
31
32 {{- if not .Values.persistence.enabled }}
33 #################################################################################
34 ######   WARNING: Persistence is disabled!!! You will lose your data when   #####
35 ######            the Grafana pod is terminated.                            #####
36 #################################################################################
37 {{- end }}