@@ -28,8 +28,8 @@ import (
28
28
const (
29
29
// SchedulerSubsystem - subsystem name used by scheduler
30
30
SchedulerSubsystem = "scheduler"
31
- // SchedulingLatencyName - scheduler latency metric name
32
- SchedulingLatencyName = "scheduling_duration_seconds"
31
+ // DeprecatedSchedulingDurationName - scheduler duration metric name which is deprecated
32
+ DeprecatedSchedulingDurationName = "scheduling_duration_seconds"
33
33
// DeprecatedSchedulingLatencyName - scheduler latency metric name which is deprecated
34
34
DeprecatedSchedulingLatencyName = "scheduling_latency_seconds"
35
35
@@ -62,16 +62,17 @@ var (
62
62
// PodScheduleFailures counts how many pods could not be scheduled.
63
63
PodScheduleFailures = scheduleAttempts .With (metrics.Labels {"result" : "unschedulable" })
64
64
// PodScheduleErrors counts how many pods could not be scheduled due to a scheduler error.
65
- PodScheduleErrors = scheduleAttempts .With (metrics.Labels {"result" : "error" })
66
- SchedulingLatency = metrics .NewSummaryVec (
65
+ PodScheduleErrors = scheduleAttempts .With (metrics.Labels {"result" : "error" })
66
+ DeprecatedSchedulingDuration = metrics .NewSummaryVec (
67
67
& metrics.SummaryOpts {
68
68
Subsystem : SchedulerSubsystem ,
69
- Name : SchedulingLatencyName ,
69
+ Name : DeprecatedSchedulingDurationName ,
70
70
Help : "Scheduling latency in seconds split by sub-parts of the scheduling operation" ,
71
71
// Make the sliding window of 5h.
72
72
// TODO: The value for this should be based on some SLI definition (long term).
73
- MaxAge : 5 * time .Hour ,
74
- StabilityLevel : metrics .ALPHA ,
73
+ MaxAge : 5 * time .Hour ,
74
+ StabilityLevel : metrics .ALPHA ,
75
+ DeprecatedVersion : "1.18.0" ,
75
76
},
76
77
[]string {OperationLabel },
77
78
)
@@ -303,7 +304,7 @@ var (
303
304
304
305
metricsList = []metrics.Registerable {
305
306
scheduleAttempts ,
306
- SchedulingLatency ,
307
+ DeprecatedSchedulingDuration ,
307
308
DeprecatedSchedulingLatency ,
308
309
E2eSchedulingLatency ,
309
310
DeprecatedE2eSchedulingLatency ,
@@ -366,7 +367,7 @@ func UnschedulablePods() metrics.GaugeMetric {
366
367
367
368
// Reset resets metrics
368
369
func Reset () {
369
- SchedulingLatency .Reset ()
370
+ DeprecatedSchedulingDuration .Reset ()
370
371
DeprecatedSchedulingLatency .Reset ()
371
372
}
372
373
0 commit comments