change CounterVec to use Counter in the Kubelet's Pod Lifecycle Event Generator

This commit is contained in:
yiyang5055
2019-12-11 23:51:28 +08:00
parent cfdc365525
commit 0f410d625a
2 changed files with 4 additions and 5 deletions

View File

@@ -272,7 +272,7 @@ func (g *GenericPLEG) relist() {
select {
case g.eventChannel <- events[i]:
default:
metrics.PLEGDiscardEvents.WithLabelValues().Inc()
metrics.PLEGDiscardEvents.Inc()
klog.Error("event channel is full, discard this relist() cycle event")
}
}