Skip to content

Commit

Permalink
fix: disable collectd by default
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Feb 6, 2025
1 parent 93162ec commit 9d578a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/collectd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func (c *Config) setValue() {

func init() {
_ = viper.BindEnv("collectd.enable", "TAOS_ADAPTER_COLLECTD_ENABLE")
pflag.Bool("collectd.enable", true, `enable collectd. Env "TAOS_ADAPTER_COLLECTD_ENABLE"`)
viper.SetDefault("collectd.enable", true)
pflag.Bool("collectd.enable", false, `enable collectd. Env "TAOS_ADAPTER_COLLECTD_ENABLE"`)
viper.SetDefault("collectd.enable", false)

_ = viper.BindEnv("collectd.port", "TAOS_ADAPTER_COLLECTD_PORT")
pflag.Int("collectd.port", 6045, `collectd server port. Env "TAOS_ADAPTER_COLLECTD_PORT"`)
Expand Down

0 comments on commit 9d578a4

Please sign in to comment.