Grafana Installation
Persistent Storage Configuration
Since Grafana’s data will be stored on a node in Kubernetes cluster, PersistentVolume (PV) and PersistentVolumeClaim (PVC) definitions need to be made.This configuration ensures Grafana preserves its data in case of shutdown or restart situations.
Grafana Secret Configuration
Password and password for admin user who will login to Grafana interface are determined:Grafana Deployment Configuration
Load the following Grafana Deployment YAML file to your Kubernetes Cluster by modifying it according to your systems.Grafana Kubernetes Service
Kubernetes service for Grafana is created:While Grafana is deployed on Kubernetes, it creates a Kubernetes service named grafana and of NodePort type. This service is necessary for accessing Grafana from outside Kubernetes. However, you can adapt it according to Ingress or whatever structure you use for connection method in your organization instead of this service.
Setting Prometheus as Data Source on Grafana
1
Login to GrafanaLogin to Grafana interface with admin user.
2
Adding Data SourceClick Data Source tab from Left Menu and select Add new data source option.

3
Prometheus SelectionPrometheus is selected as data source. Prometheus Connection url and other necessary settings are entered and saved.



4
Creating DashboardClick Dashboard tab from Left Menu and select new dashboard option.

5
Data Source SelectionNew dashboard is created and prometheus is selected as data source.


