***** DevOps Task 5 *****

Image for post
Image for post

Integrate Prometheus and Grafana and perform in the following way:
1. Deploy them as pods on top of Kubernetes by creating resources Deployment, ReplicaSet, Pods or Services
2. And make their data to remain persistent
3. And both of them should be exposed to the outside world

Following 4 files we required:-

Image for post
Image for post

grafana-deploy.yml file:-

Image for post
Image for post
Image for post
Image for post

prometheus-deploy.yml file:-

Image for post
Image for post
Image for post
Image for post

pvc-for-grafana.yml file:-

Image for post
Image for post

pvc-for-prometheus.yml file:-

Image for post
Image for post

So Let’s start, we run “minikube start” command to start minikube as shown below:-

Image for post
Image for post
Image for post
Image for post

then, we have run one command “kubectl create -k . ”

by this command, all setup build successfully as shown below:-

Image for post
Image for post

by run “kubectl get all” command we can seen pods detail and also expose port as shown below:-

Image for post
Image for post

by “minikube ip” we get minikube IP as shown below :-

Image for post
Image for post

Prometheus page as shown below:-

Image for post
Image for post
Image for post
Image for post

Grafana login page as shown below:-

Image for post
Image for post
Image for post
Image for post

Add data source:-

Image for post
Image for post

Enter Prometheus URL as shown below:-

Image for post
Image for post

Successfully connected:-

Image for post
Image for post

Pre created Dashboard:-

Image for post
Image for post
Image for post
Image for post

New dashboard:-

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

************************* THANKS *************************

Written by

Ansible / Flutter / Hybrid Multi-Cloud / GCP / EKS / Kubernetes / DevOps / MlOps / Docker Expertise / RHCSA / Advance JAVA / Python Learner / Arth Learner

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