Skip to content

Commit e3601c8

Browse files
committed
fix prometheus output error messages
1 parent 1a1c370 commit e3601c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/output/prometheus/prometheus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (p *Plugin) Start(config pipeline.AnyConfig, params *pipeline.OutputPluginP
242242
level = zapcore.ErrorLevel
243243
}
244244

245-
p.logger.Log(level, "can't send data to loki", zap.Error(err),
245+
p.logger.Log(level, "can't send data to Prometheus", zap.Error(err),
246246
zap.Int("retries", p.config.Retry))
247247
}
248248

@@ -297,7 +297,7 @@ func (p *Plugin) out(workerData *pipeline.WorkerData, batch *pipeline.Batch) err
297297
err := p.send(root)
298298
if err != nil {
299299
p.sendErrorMetric.WithLabelValues().Inc()
300-
p.logger.Error("can't send data to Loki", zap.String("address", p.config.Endpoint), zap.Error(err))
300+
p.logger.Error("can't send data to Prometheus", zap.String("address", p.config.Endpoint), zap.Error(err))
301301
} else {
302302
p.logger.Debug("successfully sent", zap.String("data", string(data.outBuf)))
303303
}

0 commit comments

Comments
 (0)