How do k8s dashbaord and metrics server communicate? Just like in Prometheus scrapes metrics exposed via REST. How to check what exactly metrics server exposes?
Asked
Active
Viewed 85 times
1 Answers
0
Metrics server is using k8s metrics API to export mertics to k8s.
Also check: k8s monitoring architecture. This document proposes a high-level monitoring architecture for Kubernetes.
How to check what exactly metrics server exposes
Use api endpoint:
kubectl get --raw "/apis/metrics.k8s.io/v1beta1/pods" | jq
kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes" | jq
If you don't have any custom metrics exposed you will see that the only exposed metrics are CPU and Memory (for every pod/node).

Matt
- 7,419
- 1
- 11
- 22