Study. uk . com
  1. Home
  2. All questions
  3. Question 988

CKA study material · question 988 of 1000

How does kube-state-metrics obtain the information it publishes?

  1. By reading each kubelet's /stats endpoint
  2. By connecting to the API server and watching objects
  3. By reading etcd directly
  4. By collecting from cAdvisor on each node
Show the answer

Answer: B. By connecting to the API server and watching objects

kube-state-metrics is an add-on agent that talks to the API server and exposes an HTTP endpoint generated from object state for a scraper to read.

Source: Metrics for Kubernetes Object States (Kubernetes) — Kube State Metrics (overview)

Challenge yourself on this topic → Study as cards