From ef62f905994a7072bafdf5b7582f28ba931942c2 Mon Sep 17 00:00:00 2001 From: Yuri Nikolic Date: Tue, 14 Jan 2025 11:41:59 +0100 Subject: [PATCH] Remove logging for the time being Signed-off-by: Yuri Nikolic --- pkg/distributor/distributor.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/distributor/distributor.go b/pkg/distributor/distributor.go index 9b7c74c1ee..4feaaa08ee 100644 --- a/pkg/distributor/distributor.go +++ b/pkg/distributor/distributor.go @@ -53,7 +53,6 @@ import ( "github.com/grafana/mimir/pkg/querier/stats" "github.com/grafana/mimir/pkg/storage/ingest" "github.com/grafana/mimir/pkg/util" - "github.com/grafana/mimir/pkg/util/extract" "github.com/grafana/mimir/pkg/util/globalerror" mimir_limiter "github.com/grafana/mimir/pkg/util/limiter" util_math "github.com/grafana/mimir/pkg/util/math" @@ -895,11 +894,8 @@ func (d *Distributor) validateSeries(nowt time.Time, ts *mimirpb.PreallocTimeser d.validateExemplars(ts, userID, minExemplarTS, maxExemplarTS) deduplicatedSamplesAndHistograms := totalSamplesAndHistograms - len(ts.Samples) - len(ts.Histograms) - if deduplicatedSamplesAndHistograms > 0 { d.sampleValidationMetrics.duplicateTimestamp.WithLabelValues(userID, group).Add(float64(deduplicatedSamplesAndHistograms)) - unsafeMetricName, _ := extract.UnsafeMetricNameFromLabelAdapters(ts.Labels) - level.Warn(d.log).Log("msg", "samples with duplicated timestamps have been discarded", "series", fmt.Sprintf("'%.200s'", unsafeMetricName), "samples discarded", deduplicatedSamplesAndHistograms) } return false, nil