Node metrics data
The kubelet gathers metric statistics at the node, volume, pod and container level, and emits this information in the .
You can send a proxied request to the stats summary API via the Kubernetes API server.
Here is the same API call using curl
:
Note: Beginning with metrics-server
0.6.x, queries the /metrics/resource
kubelet endpoint, and not /stats/summary
.
FEATURE STATE:
If you enable the PodAndContainerStatsFromCRI
feature gate in your cluster, and you use a container runtime that supports statistics access via (CRI), then the kubelet fetches Pod- and container-level metric data using CRI, and not via cAdvisor.