Skip to content

Commit

Permalink
Merge branch 'master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Jan 13, 2025
2 parents 42cc53e + a58f944 commit 67bd8b9
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 67bd8b9

Please sign in to comment.