This application will deploy the Grafana developer instance after you have enabled the observability service by creating a MultiClusterObservability CustomResource (CR) instance, then you can design your Grafana dashboard via grafana-dev instance. For more information, see Designing your Grafana dashboard.
-
Edit kustomization.yaml to ensure use the same image as the observability service grafana instance
-
Edit resource-patch.yaml to ensure use a reasonable resource request
-
Edit pvc-patch.yaml to ensure use the valid storage class name and reasonable storage size
To deploy this application, simply oc apply -k ./grafana-dev
from the root of this project, and switch the user role to Grafana administrator with the switch-to-grafana-admin.sh script.
-
Select the Grafana URL https://$ACM_URL/grafana-dev/ and log in.
-
Then run the following command to add the switched user as Grafana administrator. For example, after you log in using kubeadmin, run following command:
./switch-to-grafana-admin.sh kube:admin User <kube:admin> switched to be grafana admin
The Grafana developer instance is set up.