@@ -232,6 +232,8 @@ to collect metrics from each node. Depending on the metrics-server version it us
232
232
* Metrics resource endpoint ` /metrics/resource ` in version v0.6.0+ or
233
233
* Summary API endpoint ` /stats/summary ` in older versions
234
234
235
+ ## {{% heading "whatsnext" %}}
236
+
235
237
To learn more about the metrics-server, see the
236
238
[ metrics-server repository] ( https://github.com/kubernetes-sigs/metrics-server ) .
237
239
@@ -243,44 +245,5 @@ You can also check out the following:
243
245
* [ metrics-server releases] ( https://github.com/kubernetes-sigs/metrics-server/releases )
244
246
* [ Horizontal Pod Autoscaling] ( /docs/tasks/run-application/horizontal-pod-autoscale/ )
245
247
246
- ## Node metrics data
247
-
248
- The [ kubelet] ( /docs/reference/command-line-tools-reference/kubelet/ )
249
- gathers metric statistics at the node, volume, pod and container level,
250
- and emits this information in the
251
- [ Summary API] ( https://github.com/kubernetes/kubernetes/blob/7d309e0104fedb57280b261e5677d919cb2a0e2d/staging/src/k8s.io/kubelet/pkg/apis/stats/v1alpha1/types.go ) .
252
-
253
- You can send a proxied request to the stats summary API via the
254
- Kubernetes API server.
255
-
256
- Here is an example of a Summary API request for a node named ` minikube ` :
257
-
258
- ``` shell
259
- kubectl get --raw " /api/v1/nodes/minikube/proxy/stats/summary"
260
- ```
261
-
262
- Here is the same API call using ` curl ` :
263
-
264
- ``` shell
265
- curl http://localhost:8080/api/v1/nodes/minikube/proxy/stats/summary
266
- ```
267
-
268
- {{< note >}}
269
- Beginning with ` metrics-server ` 0.6.x, ` metrics-server ` queries the ` /metrics/resource `
270
- kubelet endpoint, and not ` /stats/summary ` .
271
- {{< /note >}}
272
-
273
- ### Summary metrics API source {#summary-api-source}
274
-
275
- By default, Kubernetes fetches node summary metrics data using an embedded
276
- [ cAdvisor] ( https://github.com/google/cadvisor ) that runs with in the kubelet.
277
-
278
- ### Summary API data via CRI {#pod-and-container-stats-from-cri}
279
-
280
- {{< feature-state for_k8s_version="v1.23" state="alpha" >}}
281
-
282
- If you enable the ` PodAndContainerStatsFromCRI `
283
- [ feature gate] ( /docs/reference/command-line-tools-reference/feature-gates/ ) in your
284
- cluster, and you use a container runtime that supports statistics access via
285
- {{< glossary_tooltip term_id="cri" text="Container Runtime Interface">}} (CRI), then
286
- the kubelet fetches Pod- and container-level metric data using CRI, and not via cadvisor.
248
+ To learn about how the kubelet serves node metrics, and how you can access those via
249
+ the Kubernetes API, read [ Node Metrics Data] ( /docs/reference/instrumentation/node-metrics ) .
0 commit comments