From 7ab1bf2020df79be2bb0300461b3b86e8199dc51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=85=E8=BF=9B=E8=B6=85?= Date: Tue, 28 Dec 2021 14:36:19 +0800 Subject: [PATCH] [zh] synchronize translate resource-metrics-pipeline.md (#31099) * [zh] synchronize translate resource-metrics-pipeline.md * [zh] fix resource-metrics-pipeline.md english spelling error --- .../resource-metrics-pipeline.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/content/zh/docs/tasks/debug-application-cluster/resource-metrics-pipeline.md b/content/zh/docs/tasks/debug-application-cluster/resource-metrics-pipeline.md index 4906ea970f..8d877938db 100644 --- a/content/zh/docs/tasks/debug-application-cluster/resource-metrics-pipeline.md +++ b/content/zh/docs/tasks/debug-application-cluster/resource-metrics-pipeline.md @@ -140,3 +140,27 @@ Learn more about the metrics server in 在[设计文档](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/metrics-server.md) 中可以了解到有关 Metrics 服务器的更多信息。 + + +### 摘要 API 来源 + +[Kubelet](/zh/docs/reference/command-line-tools-reference/kubelet/) 在节点、卷、pod 和容器级别收集统计信息, +并在[摘要API](https://github.com/kubernetes/kubernetes/blob/7d309e0104fedb57280b261e5677d919cb2a0e2d/staging/src/k8s.io/kubelet/pkg/apis/stats/v1alpha1/types.go) +中提供它们的统计信息供消费者阅读。 + + + +在 1.23 版本前,这些资源主要来自 [cAdvisor](https://github.com/google/cadvisor)。但在 1.23 版本中 +引入了 `PodAndContainerStatsFromCRI` FeatureGate, +CRI 实现了可以收集容器和 pod 级别的统计信息。 +注意:这需要 CRI 实现的支持(containerd >= 1.6.0,CRI-O >= 1.23.0)。