@@ -24,6 +24,11 @@ import (
24
24
"k8s.io/kubernetes/pkg/kubelet/server/stats"
25
25
)
26
26
27
+ // This file contains a series of deprecated metrics which we emit them by endpoint `/metrics/resource/v1alpha1`.
28
+ // These metrics have been adapted to new endpoint `/metrics/resource` as well as new `Desc`s.
29
+ // In general, we don't need to maintain these deprecated metrics any more.
30
+ // TODO(RainbowMango): Remove this file in release 1.20.0+.
31
+
27
32
// Version is the string representation of the version of this configuration
28
33
const Version = "v1alpha1"
29
34
@@ -33,28 +38,28 @@ var (
33
38
nil ,
34
39
nil ,
35
40
metrics .ALPHA ,
36
- "" )
41
+ "1.18.0 " )
37
42
38
43
nodeMemoryUsageDesc = metrics .NewDesc ("node_memory_working_set_bytes" ,
39
44
"Current working set of the node in bytes" ,
40
45
nil ,
41
46
nil ,
42
47
metrics .ALPHA ,
43
- "" )
48
+ "1.18.0 " )
44
49
45
50
containerCPUUsageDesc = metrics .NewDesc ("container_cpu_usage_seconds_total" ,
46
51
"Cumulative cpu time consumed by the container in core-seconds" ,
47
52
[]string {"container" , "pod" , "namespace" },
48
53
nil ,
49
54
metrics .ALPHA ,
50
- "" )
55
+ "1.18.0 " )
51
56
52
57
containerMemoryUsageDesc = metrics .NewDesc ("container_memory_working_set_bytes" ,
53
58
"Current working set of the container in bytes" ,
54
59
[]string {"container" , "pod" , "namespace" },
55
60
nil ,
56
61
metrics .ALPHA ,
57
- "" )
62
+ "1.18.0 " )
58
63
)
59
64
60
65
// getNodeCPUMetrics returns CPU utilization of a node.
0 commit comments