Merge pull request #91448 from RainbowMango/pr_fix_metric_naming

update metrics to conform promlint
This commit is contained in:
Kubernetes Prow Robot 2020-05-28 16:38:02 -07:00 committed by GitHub
commit 472a4e9ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",