When we want to know the metrics of Kubernetes in PrimeHub, we need to see the dashboard to get the current status. On this page, we will let you know that how to understand the Grafana Dashboard.

Why Grafana Dashboard

Grafana is a complete observability stack that allows you to monitor and analyze metrics, logs, and traces. It allows you to query, visualize, alert on and understand your data no matter where it is stored. Create, explore, and share beautiful dashboards with your team and foster a data-driven culture. For more information, refer to Grafana overview. Our observability stack has the following products and components.

Tutorial

I. How to enable the Grafana in PrimeHub System?

Step 1: Check Prometheus/Grafana + PrimeHub yaml

Step 2: Install Prometheus/Grafana + PrimeHub Dashboard

$ ./primehub/install/primehub-install create prometheus --skip-domain-check

Validate by check the .env contains GRAFANA_KEYCLOAK_PROXY_CLIENT_SECRET

$ cat ~/.primehub/config/<cluster-name>/.env | grep GRAFANA_KEYCLOAK_PROXY_CLIENT_SECRET
GRAFANA_KEYCLOAK_PROXY_CLIENT_SECRET=xxx

Step 3: Enable Grafana on PrimeHub Admin Portal

$ ./primehub/install/primehub-install upgrade primehub --skip-domain-check

Validation: check the helm chart

$ helm ls -Aa
NAME                            	NAMESPACE    	REVISION	UPDATED                                	STATUS  	CHART                                 	APP VERSION
primehub-grafana-dashboard-basic	monitoring   	5       	2021-07-11 14:59:27.025477188 +0000 UTC	deployed	primehub-grafana-dashboard-basic-1.3.0	v1.3.0
prometheus-operator             	monitoring   	2       	2021-07-11 14:58:56.273671478 +0000 UTC	deployed	prometheus-operator-8.9.3             	0.36.0
...

II. Where is the Grafana dashboard in PrimeHub System?