File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -165,17 +165,16 @@ var (
165
165
StabilityLevel : metrics .ALPHA ,
166
166
},
167
167
)
168
- // PLEGDiscardEvents is a Histogram that tracks the duration (in seconds) it takes for discarding events in the Kubelet's
169
- // Pod Lifecycle Event Generator (PLEG).
170
- PLEGDiscardEvents = metrics .NewCounterVec (
168
+ // PLEGDiscardEvents is a Counter that tracks the number of discarding events in the Kubelet's Pod Lifecycle Event Generator (PLEG).
169
+ PLEGDiscardEvents = metrics .NewCounter (
171
170
& metrics.CounterOpts {
172
171
Subsystem : KubeletSubsystem ,
173
172
Name : PLEGDiscardEventsKey ,
174
173
Help : "The number of discard events in PLEG." ,
175
174
StabilityLevel : metrics .ALPHA ,
176
175
},
177
- []string {},
178
176
)
177
+
179
178
// PLEGRelistInterval is a Histogram that tracks the intervals (in seconds) between relisting in the Kubelet's
180
179
// Pod Lifecycle Event Generator (PLEG).
181
180
PLEGRelistInterval = metrics .NewHistogram (
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ func (g *GenericPLEG) relist() {
272
272
select {
273
273
case g .eventChannel <- events [i ]:
274
274
default :
275
- metrics .PLEGDiscardEvents .WithLabelValues (). Inc ()
275
+ metrics .PLEGDiscardEvents .Inc ()
276
276
klog .Error ("event channel is full, discard this relist() cycle event" )
277
277
}
278
278
}
You can’t perform that action at this time.
0 commit comments