Change:
Mark the following metrics as deprecated and . Both of those metrics are now covered as part of , the former as a the latter and a plugin. This can be done by setting in each of the two metrics opts. Changing the name of the metric variable to be prefixed with "Deprecated" is useful as well. /help /sig scheduling
This request has been marked as needing help from a contributor. Please ensure the request meets the requirements listed . If this request no longer meets these requirements, the label can be removed by commenting with the command. <detailsIn response to : Mark the following metrics as deprecated and . Both of those metrics are now covered as part of , the former as a the latter and a plugin. /sig scheduling Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
/assign
/kind deprecation

Discussion:
preemptionStartTime := time.Now() defer func() { metrics.PreemptionAttempts.Inc() <del> metrics.SchedulingAlgorithmPreemptionEvaluationDuration.Observe(metrics.SinceInSeconds(preemptionStartTime)) </del> <ins> metrics.DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration.Observe(metrics.SinceInSeconds(preemptionStartTime)) </ins> }() nnn, err := pl.preempt(ctx, state, pod, m)

StabilityLevel: metrics.ALPHA, }, ) <del> SchedulingAlgorithmPreemptionEvaluationDuration = metrics.NewHistogram( </del> <ins> DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration = metrics.NewHistogram( </ins> &metrics.HistogramOpts{ <del> Subsystem:      SchedulerSubsystem, Name:           "scheduling_algorithm_preemption_evaluation_seconds", Help:           "Scheduling algorithm preemption evaluation duration in seconds", Buckets:        metrics.ExponentialBuckets(0.001, 2, 15), StabilityLevel: metrics.ALPHA, </del> <ins> Subsystem:         SchedulerSubsystem, Name:              "scheduling_algorithm_preemption_evaluation_seconds", Help:              "Scheduling algorithm preemption evaluation duration in seconds", Buckets:           metrics.ExponentialBuckets(0.001, 2, 15), StabilityLevel:    metrics.ALPHA, DeprecatedVersion: "1.20.0", </ins> }, ) <del> BindingLatency = metrics.NewHistogram( </del> <ins> DeprecatedBindingLatency = metrics.NewHistogram( </ins> &metrics.HistogramOpts{ <del> Subsystem:      SchedulerSubsystem, Name:           "binding_duration_seconds", Help:           "Binding latency in seconds", Buckets:        metrics.ExponentialBuckets(0.001, 2, 15), StabilityLevel: metrics.ALPHA, </del> <ins> Subsystem:         SchedulerSubsystem, Name:              "binding_duration_seconds", Help:              "Binding latency in seconds", Buckets:           metrics.ExponentialBuckets(0.001, 2, 15), StabilityLevel:    metrics.ALPHA, DeprecatedVersion: "1.20.0", </ins> }, ) PreemptionVictims = metrics.NewHistogram(

scheduleAttempts, e2eSchedulingLatency, SchedulingAlgorithmLatency, <del> BindingLatency, SchedulingAlgorithmPreemptionEvaluationDuration, </del> <ins> DeprecatedBindingLatency, DeprecatedSchedulingAlgorithmPreemptionEvaluationDuration, </ins> PreemptionVictims, PreemptionAttempts, pendingPods,

return } <del> metrics.BindingLatency.Observe(metrics.SinceInSeconds(start)) </del> <ins> metrics.DeprecatedBindingLatency.Observe(metrics.SinceInSeconds(start)) </ins> prof.Recorder.Eventf(assumed, nil, v1.EventTypeNormal, "Scheduled", "Binding", "Successfully assigned %v/%v to %v", assumed.Namespace, assumed.Name, targetNode) }