Skip to content
Snippets Groups Projects
Commit 05429f2d authored by Marc Bachmann's avatar Marc Bachmann Committed by Will Rouesnel
Browse files

Fix comments about DATA_SOURCE_* environment variable usage

parent 3f905289
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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 {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment