Skip to content

Commit

Permalink
Merge branch 'master' into fix_494
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarbonne authored Jan 11, 2025
2 parents b7d57c0 + a58f944 commit aaa77db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions collector/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func (c *configuration) Init() error {
c.SetDefault("commands.metrics_smart_args", "--xall --json")
c.SetDefault("commands.metrics_smartctl_wait", 0)

//configure env variable parsing.
c.SetEnvPrefix("COLLECTOR")
c.SetEnvKeyReplacer(strings.NewReplacer("-", "_", ".", "_"))
c.AutomaticEnv()

//c.SetDefault("collect.short.command", "-a -o on -S on")

c.SetDefault("allow_listed_devices", []string{})
Expand Down

0 comments on commit aaa77db

Please sign in to comment.