Skip to content

Commit 394a458

Browse files
ZhengYa-0110lzf575
authored andcommitted
feat: sample prometheus log
1 parent 081b73f commit 394a458

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/controller/prometheus/label.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ func (s *LabelSynchronizer) assembleMetricLabel(mls []*trident.MetricLabelReques
329329
log.Errorf("metric name id not found, name to request count: %+v", nonMetricNameToCount, s.org.LogPrefix)
330330
}
331331
if nonLabelNames.Cardinality() > 0 {
332-
log.Errorf("label name id not found, names: %v", nonLabelNames.ToSlice(), s.org.LogPrefix)
332+
log.Errorf("label name id not found, %s", logNotFoundDetail(nonLabelNames.ToSlice()), s.org.LogPrefix)
333333
}
334334
if nonLabelValues.Cardinality() > 0 {
335-
log.Errorf("label value id not found, values: %v", nonLabelValues.ToSlice(), s.org.LogPrefix)
335+
log.Errorf("label value id not found, %s", logNotFoundDetail(nonLabelValues.ToSlice()), s.org.LogPrefix)
336336
}
337337
return respMLs, nil
338338
}

0 commit comments

Comments
 (0)