mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +00:00
Reduce metric namer label-GVR logspam
It's fairly common to have a label pattern that matches lots of irrelevant labels, so this makes the "error" about being unable to normalize/resolve a label to a GVR a V(9) info log, instead of an error log.
This commit is contained in:
parent
58857cfd37
commit
9d7157f7cc
1 changed files with 2 additions and 1 deletions
|
|
@ -275,7 +275,8 @@ func (n *metricNamer) ResourcesForSeries(series prom.Series) ([]schema.GroupReso
|
|||
if groupRes, ok = n.labelResExtractor.GroupResourceForLabel(lbl); ok {
|
||||
info, _, err := provider.CustomMetricInfo{GroupResource: groupRes}.Normalized(n.mapper)
|
||||
if err != nil {
|
||||
glog.Errorf("unable to normalize group-resource %s from label %q, skipping: %v", groupRes.String(), lbl, err)
|
||||
// this is likely to show up for a lot of labels, so make it a verbose info log
|
||||
glog.V(9).Infof("unable to normalize group-resource %s from label %q, skipping: %v", groupRes.String(), lbl, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue