1-) Grafana Installation
Persistent Storage Configuration
Since Grafana’s data will be stored on a node in the Kubernetes cluster, PersistentVolume (PV) and PersistentVolumeClaim (PVC) definitions must be made. This configuration ensures that Grafana preserves its data in case of shutdown or restart.Grafana Secret Configuration
Grafana Deployment Configuration
Load the Grafana Deployment YAML file below into your Kubernetes Cluster by modifying it to suit your systems.Kubernetes Service for Grafana is created.
2) Setting Prometheus as Data Source on Grafana
- Log in to Grafana
- Click the Data Source tab from the left menu and select Add new data source option.

- Prometheus is selected as the data source. 4. Prometheus Connection url and other necessary settings are entered and saved.

- The Prometheus Connection URL and other necessary settings are entered and saved.

- Click the Dashboard tab from the left menu and select the new dashboard option.

- A new dashboard is created and prometheus is selected as the data source.


