Story of Grafana

Yogesh Kumar
2 min readMay 3, 2021
Photo by Carlos Muza on Unsplash

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 :


The spike is done using source code:

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 <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 <grafana-pod-id> 3000

Grafana UI creds are admin/admin




Yogesh Kumar

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