From the course: Kubernetes: Monitoring with Prometheus

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Capturing Kubernetes infrastructure data

Capturing Kubernetes infrastructure data - Kubernetes Tutorial

From the course: Kubernetes: Monitoring with Prometheus

Start my 1-month free trial

Capturing Kubernetes infrastructure data

- [Instructor] Once we actually have Prometheus installed, the next thing we want to do is actually start exporting some data into it. The default operator driven Prometheus doesn't actually monitor anything by default and we can actually see this by logging into the Prometheus UI and we could do that by first using kubectl to get our services so you can see the services that are currently running and specifically where we're looking for the Prometheus main service and we want to grab that load balancer external IP which is actually a host name. So grab that kubectl get service that is o yaml, so I want the yaml format of the output which is a long form. Prometheus dash main and I'm actually just going to look for the host name parameter which is in here. You can delete the host name and can grep for host name, which is what I was really looking for. So this is the host name that we want. I'm going to go ahead and copy this and then we can go ahead clear this screen for right now. Now…

Contents