Skip to content

Commit 05429f2

Browse files
marcbachmannwrouesnel
authored andcommitted
Fix comments about DATA_SOURCE_* environment variable usage
1 parent 3f90528 commit 05429f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
10591059
// try to get the DataSource
10601060
// DATA_SOURCE_NAME always wins so we do not break older versions
10611061
// reading secrets from files wins over secrets in environment variables
1062-
// DATA_SOURCE_NAME > DATA_SOURCE_{USER|FILE}_FILE > DATA_SOURCE_{USER|FILE}
1062+
// DATA_SOURCE_NAME > DATA_SOURCE_{USER|PASS}_FILE > DATA_SOURCE_{USER|PASS}
10631063
func getDataSource() string {
10641064
var dsn = os.Getenv("DATA_SOURCE_NAME")
10651065
if len(dsn) == 0 {

0 commit comments

Comments
 (0)