Kubernetes Views 3

Building a Kubernetes monitoring system, part 2

Building a Kubernetes monitoring system, part 2 image 1

Part 1: https://librat.kr/entry/Kubernetes-쿠버네티스-모니터링-시스템-구축-1

 

Building a Kubernetes monitoring system, part 1

Connecting Prometheus


In part 1 we brought up kube-state-metrics, Prometheus, and Grafana as containers.


The first time you open it, click add your first data source to get in.

Building a Kubernetes monitoring system, part 2 image 2


Then select Prometheus.

Building a Kubernetes monitoring system, part 2 image 3


In the HTTP - URL field, set the Prometheus URL and run save & test to confirm the connection.

kubernetes default :

http://prometheus-service.monitoring.svc:8080
Building a Kubernetes monitoring system, part 2 image 4

Loading a template


Grafana can load templates that other people have made.

https://grafana.com/grafana/dashboards/


On that URL, find the template you want and click "Copy ID to clipboard" to copy it.

Building a Kubernetes monitoring system, part 2 image 5

Then click Import on the dashboard, paste it, click Load, and then click Import.

Building a Kubernetes monitoring system, part 2 image 6

You have to set the database source for the data to show up correctly.

Building a Kubernetes monitoring system, part 2 image 7

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.