From 76027093ca50d90a5c749bc33add8886b36a1ff2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 3 May 2021 13:56:43 +0300 Subject: [PATCH] lib/storage: use WARNING instead of INFO level for logging dropped labels --- lib/storage/metric_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/metric_name.go b/lib/storage/metric_name.go index 3ac1157bc..3e232ee45 100644 --- a/lib/storage/metric_name.go +++ b/lib/storage/metric_name.go @@ -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{}