Source: medium.com

Prometheus-Grafana on K8s

Category: Data, Kubernetes

Integrate Prometheus and Grafana and perform in following way: Deploy them as pods on top of Kubernetes by creating resources Deployment, ReplicaSet, Pods or Services And make their data to be remain persistent And both of them should be exposed to outside world Dockerfile for Prometheus: To build the image for launch of the container command is : docker build -t shrutshah/prometheus:v1 For storing metrics data , prom_data folder is created. Persistent Volume (PV) is created to make the data generated and stored by prometheus persistent or permanent.

Use this IP with Port exposed for Prometheus and Grafana both.

Related Articles