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

Pre-requisites

The spike is done using source code:
https://github.com/ykumar-rb/POC/tree/master/Prometheus-Operator-monitoring/

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

Grafana Dashboard

kubectl -n monitoring port-forward --address 172.29.55.252 <grafana-pod-id> 3000

Grafana UI creds are admin/admin

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yogesh Kumar

Yogesh Kumar

Believe in learn, share and grow principle. Passion to learn new technologies and tool sets