Skip to content

Commit fad9217

Browse files
authored
Merge branch 'master' into master
2 parents c552810 + 05429f2 commit fad9217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 1 addition & 1 deletion
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)