mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-19 07:25:19 +00:00
Merge pull request #133092 from pohly/scheduler-perf-metric-not-found
scheduler_perf: hide "metric ... not found" errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user