We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378b2e8 commit 148286fCopy full SHA for 148286f
cmd/sql_exporter/main.go
@@ -46,13 +46,7 @@ func main() {
46
alsoLogToStderr.DefValue = "true"
47
_ = alsoLogToStderr.Value.Set("true")
48
}
49
- // Override the config.file default with the CONFIG environment variable, if set. If the flag is explicitly set, it
50
- // will end up overriding either.
51
- // Deprecated: "CONFIG" variable will be replaced by "SQLEXPORTER_CONFIG" in the next release
52
- if envConfigFile := os.Getenv("CONFIG"); envConfigFile != "" {
53
- *configFile = envConfigFile
54
- }
55
-
+ // Override the config.file default with the SQLEXPORTER_CONFIG environment variable if set.
56
if val, ok := os.LookupEnv(envConfigFile); ok {
57
*configFile = val
58
0 commit comments