Story of Grafana
This story is in continuation of monitoring story using Prometheus . Once Prometheus instance is up and running and scraped metrics from applications , how can we utilize the scraped metrics for further analysis and visualization. Of course, Grafana is meant for same.
Grafana allows us to query, visualize, alert on and understand metrics no matter where they are stored. Create, explore, and share dashboards and foster a data driven culture.
Assuming we have K8s cluster having Prometheus instance up and running.
If not follow link before proceeding further :https://yogesh-dev.medium.com/prometheus-operator-for-simplifying-deployment-and-management-of-our-prometheus-994e9d04fe6d
Create Grafana Instance in K8s cluster
kubectl create -f Prometheus-Operator-monitoring/grafana -n monitoring
# kubectl get all -n monitoring | grep grafana
pod/grafana-5874b66f87-wf62v 1/1 Running 0 4h52m
service/grafana ClusterIP 10.105.120.63 <none> 3000/TCP 4h52m
deployment.apps/grafana 1/1 1 1 4h52m
replicaset.apps/grafana-5874b66f87 1 1 1 4h52m
kubectl -n monitoring port-forward --address 172.29.55.252 <grafana-pod-id> 3000
Grafana UI creds are admin/admin