Persistent Prometheus Config & Monitoring with ⎈Kubernetes⎈ along with Grafana Visualisation attached with PVC Storage
What is Kubernetes?
Kubernetes is an open-source container-orchestration system for automating application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation.
What is Prometheus?
Prometheus is a free software application used for event monitoring and alerting. It records real-time metrics in a time series database built using an HTTP pull model, with flexible queries and real-time alerting
What is Grafana?
Grafana is multi-platform open-source analytics and interactive visualization web application. It provides charts, graphs, and alerts for the web when connected to supported data sources.
About the Task:
1. Integration Of Prometheus & Grafana on top of ⎈Kubernetes⎈.
2. Prometheus Configuration and Grafana Database Storage should be persistent.
3. Prometheus & Grafana Deployments should be exposed to the world.
Steps to be followed:
Create a ConfigMap

Create a Prometheus Deployment

Once we have deployed and exposed Prometheus, anyone from outside can access it.

We provided targets for the Prometheus in the prom_config-map(ConfigMap) file which will be reflected in the Service Discovery in Prometheus.

Visualize the metrics:
Create a PVC

Create a Grafana Deployment

We have to expose the Grafana Deployment after which anyone can access it.

