mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-11 03:31:26 +00:00
change to loggable dsn
Signed-off-by: PaulTorm <tormaehlen@denic.de>
This commit is contained in:
parent
7d4c278221
commit
29901c9b60
@ -678,7 +678,7 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
|
||||
if err := e.scrapeDSN(ch, dsn); err != nil {
|
||||
errorsCount++
|
||||
|
||||
logger.Error("error scraping dsn", "err", err, "dsn", dsn)
|
||||
logger.Error("error scraping dsn", "err", err, "dsn", loggableDSN(dsn))
|
||||
|
||||
if _, ok := err.(*ErrorConnectToServer); ok {
|
||||
connectionErrorsCount++
|
||||
|
Loading…
Reference in New Issue
Block a user