Grafana Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Grafana =Change Admin Password= The initial login credentials are admin/prom-operator. They are base64-encoded (and can be updated) in the...")
 
Line 5: Line 5:


The initial login credentials are admin/prom-operator. They are base64-encoded (and can be updated) in the prometheus-grafana secret.
The initial login credentials are admin/prom-operator. They are base64-encoded (and can be updated) in the prometheus-grafana secret.
=Expose Grafana Locally=
Apply:
<syntaxhighlight lang='bash'>
namespace="prometheus"
cat <<EOF | kubectl -n ${namespace} apply -f -
apiVersion: v1
kind: Service
metadata:
  name: prometheus-grafana-lb
  namespace: ${namespace}
spec:
  type: LoadBalancer
  ports:
  - name: service
    port: 3000
    protocol: TCP
    targetPort: 3000
  selector:
    app.kubernetes.io/instance: prometheus
    app.kubernetes.io/name: grafana
EOF
<syntaxhighlight lang='yaml'>

Revision as of 04:31, 14 October 2020

Internal

Change Admin Password

The initial login credentials are admin/prom-operator. They are base64-encoded (and can be updated) in the prometheus-grafana secret.

Expose Grafana Locally

Apply: <syntaxhighlight lang='bash'> namespace="prometheus" cat <<EOF | kubectl -n ${namespace} apply -f - apiVersion: v1 kind: Service metadata:

 name: prometheus-grafana-lb
 namespace: ${namespace}

spec:

 type: LoadBalancer
 ports:
 - name: service
   port: 3000
   protocol: TCP
   targetPort: 3000
 selector:
   app.kubernetes.io/instance: prometheus
   app.kubernetes.io/name: grafana

EOF <syntaxhighlight lang='yaml'>