Image for post
Image for post
Prometheus || Kubernetes || Grafana

Prometheus & Grafana on Kubernetes

Lets get going !!

docker pull dakshjain09/prometheus:v1

You can also get all the files from GitHub.

Image for post
Image for post
Prometheus on Kubernetes — with PVC, Service, ConfigMap
Image for post
Image for post
By default this config file of Prometheus & Target page
Image for post
Image for post
If we update the configMap file and delete the older pod: new targets appear — Permanent

Next lets move to Grafana!

docker pull dakshjain09/grafana-server:v1

You can also get the code from GitHub.

Image for post
Image for post
Prometheus on Grafana — with PVC, Service
Image for post
Image for post
By default no dashboards present but a PVC is attached
Image for post
Image for post
Dashboard created => Pod gets corrupt => Deployment creates again => Again check the page => Same Dashboard appears => No data lost

That’s all folks!!

For any queries, corrections, or suggestions you can always connect with me on my LinkedIn.

Worked in collaboration with Ashish Kumar.

Written by

Automation Tech Enthusiast || Terraform Researcher || DevOps || MLOps ||

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