mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
remove StartedPodsErrorsTotal metrice message
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
bbd809cbd0
commit
35df409a7e
@ -814,7 +814,7 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, podStatus *kubecontaine
|
||||
klog.V(4).InfoS("Pod was deleted and sandbox failed to be created", "pod", klog.KObj(pod), "podUID", pod.UID)
|
||||
return
|
||||
}
|
||||
metrics.StartedPodsErrorsTotal.WithLabelValues(err.Error()).Inc()
|
||||
metrics.StartedPodsErrorsTotal.Inc()
|
||||
createSandboxResult.Fail(kubecontainer.ErrCreatePodSandbox, msg)
|
||||
klog.ErrorS(err, "CreatePodSandbox for pod failed", "pod", klog.KObj(pod))
|
||||
ref, referr := ref.GetReference(legacyscheme.Scheme, pod)
|
||||
|
@ -460,14 +460,13 @@ var (
|
||||
},
|
||||
)
|
||||
// StartedPodsErrorsTotal is a counter that tracks the number of errors creating pod sandboxes
|
||||
StartedPodsErrorsTotal = metrics.NewCounterVec(
|
||||
StartedPodsErrorsTotal = metrics.NewCounter(
|
||||
&metrics.CounterOpts{
|
||||
Subsystem: KubeletSubsystem,
|
||||
Name: StartedPodsErrorsTotalKey,
|
||||
Help: "Cumulative number of errors when starting pods",
|
||||
StabilityLevel: metrics.ALPHA,
|
||||
},
|
||||
[]string{"message"},
|
||||
)
|
||||
// StartedContainersTotal is a counter that tracks the number of container creation operations
|
||||
StartedContainersTotal = metrics.NewCounterVec(
|
||||
|
Loading…
Reference in New Issue
Block a user