From 05429f2d1ca72edcc5b035838cc97733242aaaa5 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Tue, 19 Jun 2018 10:35:07 +0200 Subject: [PATCH] Fix comments about DATA_SOURCE_* environment variable usage --- cmd/postgres_exporter/postgres_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/postgres_exporter/postgres_exporter.go b/cmd/postgres_exporter/postgres_exporter.go index d59dff27..ee6a15f1 100644 --- a/cmd/postgres_exporter/postgres_exporter.go +++ b/cmd/postgres_exporter/postgres_exporter.go @@ -1059,7 +1059,7 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) { // try to get the DataSource // DATA_SOURCE_NAME always wins so we do not break older versions // reading secrets from files wins over secrets in environment variables -// DATA_SOURCE_NAME > DATA_SOURCE_{USER|FILE}_FILE > DATA_SOURCE_{USER|FILE} +// DATA_SOURCE_NAME > DATA_SOURCE_{USER|PASS}_FILE > DATA_SOURCE_{USER|PASS} func getDataSource() string { var dsn = os.Getenv("DATA_SOURCE_NAME") if len(dsn) == 0 {