From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Monitoring Kubernetes with Prometheus

Monitoring Kubernetes with Prometheus

- Alright, in the previous videos, you have learned how to work at Prometheus. Now Prometheus is particularly seen in combination with Kubernetes. Now how does that work? Well to scrape metrics from Kubernetes, it makes sense to learn Prometheus as an application. That is a deployment within Kubernetes. In the previous demo, we have used it externally, which is totally possible. But for best integration with Kubernetes, run it inside Kubernetes. You'll need a service to make it accessible and optionally an ingress resource as well. And you'll also need some role based access control settings. That is all about permissions, a topic that we have not really talked about, but without the role based access control, the Prometheus application is not capable to get the appropriate information out of the Kubernetes etcd. So it is essential that these role-based access control is included. And also you'll need a ConfigMap to provide your custom Prometheus.yml. Previously you have seen how to…

Contents