Skip to content

Commit 805d3d7

Browse files
committed
change warning log to debug for prometheus receiver to reduce noise
1 parent 62fc4da commit 805d3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

receiver/prometheusreceiver/internal/transaction.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ func (t *transaction) Append(_ storage.SeriesRef, ls labels.Labels, atMs int64,
126126
// But it can also be a staleNaN, which is inserted when the target goes away.
127127
if metricName == scrapeUpMetricName && val != 1.0 && !value.IsStaleNaN(val) {
128128
if val == 0.0 {
129-
t.logger.Warn("Failed to scrape Prometheus endpoint",
129+
t.logger.Debug("Failed to scrape Prometheus endpoint",
130130
zap.Int64("scrape_timestamp", atMs),
131131
zap.Stringer("target_labels", ls))
132132
} else {
133-
t.logger.Warn("The 'up' metric contains invalid value",
133+
t.logger.Debug("The 'up' metric contains invalid value",
134134
zap.Float64("value", val),
135135
zap.Int64("scrape_timestamp", atMs),
136136
zap.Stringer("target_labels", ls))

0 commit comments

Comments
 (0)