Which tool exposes metrics describing the state of Kubernetes objects, such as pods and deployments, for monitoring?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

Which tool exposes metrics describing the state of Kubernetes objects, such as pods and deployments, for monitoring?

Explanation:
The thing being tested is how you get metrics that describe the real-time state of Kubernetes objects. The tool that does this is kube-state-metrics. It runs in the cluster, queries the Kubernetes API for resources like pods and deployments, and exposes metrics in Prometheus format. This lets Prometheus scrape data such as pod status, deployment replicas, and ready counts to monitor how resources are actually behaving. Prometheus is the scraping and storage system, not the source of the object-state metrics. CoreDNS handles DNS inside the cluster, not object-state monitoring. Kubelet runs on each node and exposes node-level and container metrics, not a broad view of Kubernetes object states.

The thing being tested is how you get metrics that describe the real-time state of Kubernetes objects. The tool that does this is kube-state-metrics. It runs in the cluster, queries the Kubernetes API for resources like pods and deployments, and exposes metrics in Prometheus format. This lets Prometheus scrape data such as pod status, deployment replicas, and ready counts to monitor how resources are actually behaving.

Prometheus is the scraping and storage system, not the source of the object-state metrics. CoreDNS handles DNS inside the cluster, not object-state monitoring. Kubelet runs on each node and exposes node-level and container metrics, not a broad view of Kubernetes object states.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy