Skip to content

Commit e09bd95

Browse files
author
Tim Bannister
committed
Clarify resource metrics pipeline task page
1 parent 9d256ea commit e09bd95

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

content/en/docs/tasks/debug/debug-cluster/resource-metrics-pipeline.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,17 @@ You can also check out the following:
243243
* [metrics-server releases](https://github.com/kubernetes-sigs/metrics-server/releases)
244244
* [Horizontal Pod Autoscaling](/docs/tasks/run-application/horizontal-pod-autoscale/)
245245

246-
### Summary API source
246+
## Node metrics data
247247

248-
The [kubelet](/docs/reference/command-line-tools-reference/kubelet/) gathers stats at the node,
249-
volume, pod and container level, and emits this information in
250-
the [Summary API](https://github.com/kubernetes/kubernetes/blob/7d309e0104fedb57280b261e5677d919cb2a0e2d/staging/src/k8s.io/kubelet/pkg/apis/stats/v1alpha1/types.go)
251-
for consumers to read.
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).
252252

253-
Here is an example of a Summary API request for a `minikube` node:
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`:
254257

255258
```shell
256259
kubectl get --raw "/api/v1/nodes/minikube/proxy/stats/summary"
@@ -263,6 +266,10 @@ curl http://localhost:8080/api/v1/nodes/minikube/proxy/stats/summary
263266
```
264267

265268
{{< note >}}
266-
The summary API `/stats/summary` endpoint will be replaced by the `/metrics/resource` endpoint
267-
beginning with metrics-server 0.6.x.
269+
Beginning with `metrics-server` 0.6.x, `metrics-server` queries the `/metrics/resource`
270+
kubelet endpoint, and not `/stats/summary`.
268271
{{< /note >}}
272+
273+
274+
By default, Kubernetes fetches node summary metrics data using an embedded
275+
[cAdvisor](https://github.com/google/cadvisor) that runs with in the kubelet.

0 commit comments

Comments
 (0)