deprecate scheduler metrics BindingLatency and SchedulingAlgorithmPreemptionEvaluationDuration

This commit is contained in:
Arghya Sadhu
2020-09-23 16:49:09 +05:30
parent 131f42d263
commit 078b355da3
3 changed files with 18 additions and 16 deletions

View File

@@ -417,7 +417,7 @@ func (sched *Scheduler) finishBinding(prof *profile.Profile, assumed *v1.Pod, ta
return
}
metrics.BindingLatency.Observe(metrics.SinceInSeconds(start))
metrics.DeprecatedBindingLatency.Observe(metrics.SinceInSeconds(start))
prof.Recorder.Eventf(assumed, nil, v1.EventTypeNormal, "Scheduled", "Binding", "Successfully assigned %v/%v to %v", assumed.Namespace, assumed.Name, targetNode)
}