@@ -17,46 +17,87 @@ const (
1717 subsystemPrefix = Subsystem + "_"
1818
1919 // Operations is the key for CRI-O operation metrics.
20+ // Deprecated: in favour of OperationsTotal
2021 Operations Collector = crioPrefix + "operations"
2122
2223 // OperationsLatencyTotal is the key for the operation latency metrics.
24+ // Deprecated: in favour of OperationsLatencySecondsTotal
2325 OperationsLatencyTotal Collector = crioPrefix + "operations_latency_microseconds_total"
2426
2527 // OperationsLatency is the key for the operation latency metrics for each CRI call.
28+ // Deprecated: in favour of OperationsLatencySeconds
2629 OperationsLatency Collector = crioPrefix + "operations_latency_microseconds"
2730
2831 // OperationsErrors is the key for the operation error metrics.
32+ // Deprecated: in favour of OperationsErrorsTotal
2933 OperationsErrors Collector = crioPrefix + "operations_errors"
3034
3135 // ImagePullsByDigest is the key for CRI-O image pull metrics by digest.
36+ // Deprecated: in favour of ImagePullsBytesTotal
3237 ImagePullsByDigest Collector = crioPrefix + "image_pulls_by_digest"
3338
3439 // ImagePullsByName is the key for CRI-O image pull metrics by name.
40+ // Deprecated: in favour of ImagePullsBytesTotal
3541 ImagePullsByName Collector = crioPrefix + "image_pulls_by_name"
3642
3743 // ImagePullsByNameSkipped is the key for CRI-O skipped image pull metrics by name (skipped).
44+ // Deprecated: in favour of ImagePullsSkippedBytesTotal
3845 ImagePullsByNameSkipped Collector = crioPrefix + "image_pulls_by_name_skipped"
3946
4047 // ImagePullsFailures is the key for failed image downloads in CRI-O.
48+ // Deprecated: in favour of ImagePullsFailureTotal
4149 ImagePullsFailures Collector = crioPrefix + "image_pulls_failures"
4250
4351 // ImagePullsSuccesses is the key for successful image downloads in CRI-O.
52+ // Deprecated: in favour of ImagePullsSuccessTotal
4453 ImagePullsSuccesses Collector = crioPrefix + "image_pulls_successes"
4554
4655 // ImagePullsLayerSize is the key for CRI-O image pull metrics per layer.
4756 ImagePullsLayerSize Collector = crioPrefix + "image_pulls_layer_size"
4857
4958 // ImageLayerReuse is the key for the CRI-O image layer reuse metrics.
59+ // Deprecated: in favour of ImageLayerReuseTotal
5060 ImageLayerReuse Collector = crioPrefix + "image_layer_reuse"
5161
5262 // ContainersOOMTotal is the key for the total CRI-O container out of memory metrics.
5363 ContainersOOMTotal Collector = crioPrefix + "containers_oom_total"
5464
5565 // ContainersOOM is the key for the CRI-O container out of memory metrics per container name.
66+ // Deprecated: in favour of ContainersOOMCountTotal
5667 ContainersOOM Collector = crioPrefix + "containers_oom"
5768
5869 // ProcessesDefunct is the key for the total number of defunct processes in a node.
5970 ProcessesDefunct Collector = crioPrefix + "processes_defunct"
71+
72+ // OperationsTotal is the key for CRI-O operation metrics.
73+ OperationsTotal Collector = crioPrefix + "operations_total"
74+
75+ // OperationsLatencySeconds is the key for the operation latency metrics for each CRI call.
76+ OperationsLatencySeconds Collector = crioPrefix + "operations_latency_seconds"
77+
78+ // OperationsLatencySecondsTotal is the key for the operation latency metrics.
79+ OperationsLatencySecondsTotal Collector = crioPrefix + "operations_latency_seconds_total"
80+
81+ // OperationsErrorsTotal is the key for the operation error metrics.
82+ OperationsErrorsTotal Collector = crioPrefix + "operations_errors_total"
83+
84+ // ImagePullsBytesTotal is the key for CRI-O image pull metrics.
85+ ImagePullsBytesTotal Collector = crioPrefix + "image_pulls_bytes_total"
86+
87+ // ImagePullsSkippedBytesTotal is the key for CRI-O skipped image pull metrics.
88+ ImagePullsSkippedBytesTotal Collector = crioPrefix + "image_pulls_skipped_bytes_total"
89+
90+ // ImagePullsFailureTotal is the key for failed image downloads in CRI-O.
91+ ImagePullsFailureTotal Collector = crioPrefix + "image_pulls_failure_total"
92+
93+ // ImagePullsSuccessTotal is the key for successful image downloads in CRI-O.
94+ ImagePullsSuccessTotal Collector = crioPrefix + "image_pulls_success_total"
95+
96+ // ImageLayerReuseTotal is the key for the CRI-O image layer reuse metrics.
97+ ImageLayerReuseTotal Collector = crioPrefix + "image_layer_reuse_total"
98+
99+ // ContainersOOMCountTotal is the key for the CRI-O container out of memory metrics per container name.
100+ ContainersOOMCountTotal Collector = crioPrefix + "containers_oom_count_total"
60101)
61102
62103// FromSlice converts a string slice to a Collectors type.
@@ -79,20 +120,30 @@ func (c Collectors) ToSlice() (r []string) {
79120// name key.
80121func All () Collectors {
81122 return Collectors {
82- Operations .Stripped (),
83- OperationsLatencyTotal .Stripped (),
84- OperationsLatency .Stripped (),
85- OperationsErrors .Stripped (),
86- ImagePullsByDigest .Stripped (),
87- ImagePullsByName .Stripped (),
88- ImagePullsByNameSkipped .Stripped (),
89- ImagePullsFailures .Stripped (),
90- ImagePullsSuccesses .Stripped (),
123+ Operations .Stripped (), // Deprecated: in favour of OperationsTotal
124+ OperationsLatencyTotal .Stripped (), // Deprecated: in favour of OperationsLatencySecondsTotal
125+ OperationsLatency .Stripped (), // Deprecated: in favour of OperationsLatencySeconds
126+ OperationsErrors .Stripped (), // Deprecated: in favour of OperationsErrorsTotal
127+ ImagePullsByDigest .Stripped (), // Deprecated: in favour of ImagePullsBytesTotal
128+ ImagePullsByName .Stripped (), // Deprecated: in favour of ImagePullsBytesTotal
129+ ImagePullsByNameSkipped .Stripped (), // Deprecated: in favour of ImagePullsSkippedBytesTotal
130+ ImagePullsFailures .Stripped (), // Deprecated: in favour of ImagePullsFailureTotal
131+ ImagePullsSuccesses .Stripped (), // Deprecated: in favour of ImagePullsSuccessTotal
91132 ImagePullsLayerSize .Stripped (),
92- ImageLayerReuse .Stripped (),
133+ ImageLayerReuse .Stripped (), // Deprecated: in favour of ImageLayerReuseTotal
93134 ContainersOOMTotal .Stripped (),
94- ContainersOOM .Stripped (),
135+ ContainersOOM .Stripped (), // Deprecated: in favour of ContainersOOMCountTotal
95136 ProcessesDefunct .Stripped (),
137+ OperationsTotal .Stripped (),
138+ OperationsLatencySeconds .Stripped (),
139+ OperationsLatencySecondsTotal .Stripped (),
140+ OperationsErrorsTotal .Stripped (),
141+ ImagePullsBytesTotal .Stripped (),
142+ ImagePullsSkippedBytesTotal .Stripped (),
143+ ImagePullsFailureTotal .Stripped (),
144+ ImagePullsSuccessTotal .Stripped (),
145+ ImageLayerReuseTotal .Stripped (),
146+ ContainersOOMCountTotal .Stripped (),
96147 }
97148}
98149
0 commit comments