Prometheus + Kubernetes + Grafana

Persistent Prometheus & Grafana on Kubernetes

What is Prometheus?

  • ReplicaSet: This is a feature that looks that the number of specified pods are running at any point in time.
  • Deployment: It is an intelligent unit of Kubernetes that supports features like scaling of pods, replica sets, updates rollouts etc.
  • Persistent Volume Claim (PVC): PVs are volume plugins like Volumes, but have a lifecycle independent of any individual pod that uses the PV. A PVC) is a request for storage by a user.
  • Service: Service is an abstract way to expose an application running on a set of Pods as a network service.
  • ConfigMap: ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable. This is what helps us make things persistent.
  • Kusmotization.yaml: It contains the sequence of manifest files that can be run together by a single command.
  1. Kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/)

Let’s begin with our setup.

Let’s start my minikube first and check if my kubectl is configured properly.

minikube startkubectl get nodes
Minikube Started and Kubectl tested
pvc.yml
configmap.yml
deploy.yml
svc.yml
Provisioning the Deployment || Running Dashboard
pvc.yml
configmap.yml
deploy.yml
svc.yml
kustomization.yml
Provisioning the Deployment || Running Dashboard
Pre created Datasource || Visualising metrics

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

Worked in collaboration with Daksh Jain.

Just a tech enthusiast… Research, implement and share is what I like to do

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