How to Setup Grafana and Prometheus monitoring tool in Kubernetes


1. At first clone this repo:

git clone

2. Then create a namespace named monitoring

kubectl create ns monitoring

3. Next, create the persistent volumes and claims so that data will not be erased after pod restarting

kubectl apply -f prometheus-pv.yml

kubectl apply -f prometheus-pvc.yml

kubectl apply -f grafana-pv.yml

kubectl apply -f grafana-pvc.yml

4. Finally apply the grafana-prometheus.yaml

kubectl apply -f grafana-prometheus.yaml

5. Setup the ingress to access the grafana

kubectl apply -f grafana-ingress.yml

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment


Post a Comment