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.
2 parents 1ec4783 + 3de12cd commit a58f944Copy full SHA for a58f944
collector/pkg/config/config.go
@@ -49,6 +49,11 @@ func (c *configuration) Init() error {
49
c.SetDefault("commands.metrics_smart_args", "--xall --json")
50
c.SetDefault("commands.metrics_smartctl_wait", 0)
51
52
+ //configure env variable parsing.
53
+ c.SetEnvPrefix("COLLECTOR")
54
+ c.SetEnvKeyReplacer(strings.NewReplacer("-", "_", ".", "_"))
55
+ c.AutomaticEnv()
56
+
57
//c.SetDefault("collect.short.command", "-a -o on -S on")
58
59
c.SetDefault("allow_listed_devices", []string{})
0 commit comments