pacoxu / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
2 stars 4 forks source link

Metrics 清理, alpha metrics 目前还没定型 #1757

Open pacoxu opened 3 years ago

pacoxu commented 3 years ago
    // k8s.io/kubernetes/pkg/kubelet/server/stats
    // The two metrics have been deprecated and will be removed in release v1.20+.
    "container_cpu_usage_seconds_total", // non-counter metrics should not have "_total" suffix
    "node_cpu_usage_seconds_total",      // non-counter metrics should not have "_total" suffix

https://github.com/kubernetes/kubernetes/blob/0a839c6c3b9489716e216b4fc9dd2f9c17948c16/staging/src/k8s.io/component-base/metrics/testutil/promlint.go#L61-L64

根据 comments 删除获取修改 名称,增加必要的 metrics, 删除已经不推荐使用的 metrics。