mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #91448 from RainbowMango/pr_fix_metric_naming
update metrics to conform promlint
This commit is contained in:
commit
472a4e9ce2
@ -145,7 +145,7 @@ var (
|
|||||||
PreemptionAttempts = metrics.NewCounter(
|
PreemptionAttempts = metrics.NewCounter(
|
||||||
&metrics.CounterOpts{
|
&metrics.CounterOpts{
|
||||||
Subsystem: SchedulerSubsystem,
|
Subsystem: SchedulerSubsystem,
|
||||||
Name: "total_preemption_attempts",
|
Name: "preemption_attempts_total",
|
||||||
Help: "Total preemption attempts in the cluster till now",
|
Help: "Total preemption attempts in the cluster till now",
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.ALPHA,
|
||||||
})
|
})
|
||||||
|
@ -53,9 +53,6 @@ var exceptionMetrics = []string{
|
|||||||
// kube-proxy
|
// kube-proxy
|
||||||
"kubernetes_build_info",
|
"kubernetes_build_info",
|
||||||
|
|
||||||
// kube-scheduler
|
|
||||||
"scheduler_total_preemption_attempts",
|
|
||||||
|
|
||||||
// kubelet-resource-v1alpha1
|
// kubelet-resource-v1alpha1
|
||||||
"container_cpu_usage_seconds_total",
|
"container_cpu_usage_seconds_total",
|
||||||
"node_cpu_usage_seconds_total",
|
"node_cpu_usage_seconds_total",
|
||||||
|
Loading…
Reference in New Issue
Block a user