lib/storage: use WARNING instead of INFO level for logging dropped labels

This commit is contained in:
Aliaksandr Valialkin 2021-05-03 13:56:43 +03:00
parent ce9e163e94
commit 76027093ca

View file

@ -503,7 +503,7 @@ func trackDroppedLabels(labels, droppedLabels []prompb.Label) {
}
droppedLabelsLogOnce.Do(func() {
atomic.StoreUint64(&droppedLabelsLogNextTimestamp, ct+5)
logger.Infof("dropping %d labels for %s; dropped labels: %s; either reduce the number of labels for this metric "+
logger.Warnf("dropping %d labels for %s; dropped labels: %s; either reduce the number of labels for this metric "+
"or increase -maxLabelsPerTimeseries=%d command-line flag value",
len(droppedLabels), labelsToString(labels), labelsToString(droppedLabels), maxLabelsPerTimeseries)
droppedLabelsLogOnce = &sync.Once{}