feature(scheduler): implement plugin_evaluation_total metric

This commit is contained in:
Kensei Nakada
2023-02-04 07:21:03 +00:00
parent eabb70833a
commit 4f7717842c
2 changed files with 10 additions and 0 deletions

View File

@@ -734,6 +734,7 @@ func (f *frameworkImpl) RunFilterPlugins(
if state.SkipFilterPlugins.Has(pl.Name()) {
continue
}
metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), Filter).Inc()
if status := f.runFilterPlugin(ctx, pl, state, pod, nodeInfo); !status.IsSuccess() {
if !status.IsUnschedulable() {
// Filter plugins are not supposed to return any status other than