Merge pull request #133092 from pohly/scheduler-perf-metric-not-found

scheduler_perf: hide "metric ... not found" errors
This commit is contained in:
Kubernetes Prow Robot
2025-07-21 02:56:27 -07:00
committed by GitHub

View File

@@ -406,7 +406,10 @@ func uniqueLVCombos(lvs []*labelValues) []map[string]string {
func collectHistogramVec(metric string, labels map[string]string, lvMap map[string]string) *DataItem {
vec, err := testutil.GetHistogramVecFromGatherer(legacyregistry.DefaultGatherer, metric, lvMap)
if err != nil {
klog.Error(err)
// "metric ... not found" is pretty normal. Don't spam the output with it!
if !strings.HasSuffix(err.Error(), "not found") {
klog.Error(err)
}
return nil
}