rename metric scheduler_total_preemption_attempts to scheduler_preemption_attempts_total as counter metrics should have _total suffix.

This commit is contained in:
RainbowMango 2020-05-26 20:11:42 +08:00
parent a82d71c376
commit 4d8280acca
2 changed files with 1 additions and 4 deletions

View File

@ -145,7 +145,7 @@ var (
PreemptionAttempts = metrics.NewCounter(
&metrics.CounterOpts{
Subsystem: SchedulerSubsystem,
Name: "total_preemption_attempts",
Name: "preemption_attempts_total",
Help: "Total preemption attempts in the cluster till now",
StabilityLevel: metrics.ALPHA,
})

View File

@ -53,9 +53,6 @@ var exceptionMetrics = []string{
// kube-proxy
"kubernetes_build_info",
// kube-scheduler
"scheduler_total_preemption_attempts",
// kubelet-resource-v1alpha1
"container_cpu_usage_seconds_total",
"node_cpu_usage_seconds_total",