diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-05-17 18:44:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 18:44:15 +0300 |
commit | 4dbed7d6b590174ac9433b7a621649fb9fb21544 (patch) | |
tree | b6fec7a4ac6221d2d9c3762d413c768aadac8bea /src/go/collectors/go.d.plugin/modules/vcsa | |
parent | 72b72c20aa78a049ff64100f8ae9e3891cfd99eb (diff) |
go.d dyncfg add userconfig action (#17684)
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/vcsa')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/vcsa/vcsa.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/vcsa/vcsa.go b/src/go/collectors/go.d.plugin/modules/vcsa/vcsa.go index f5e86d082d..e13503bdb2 100644 --- a/src/go/collectors/go.d.plugin/modules/vcsa/vcsa.go +++ b/src/go/collectors/go.d.plugin/modules/vcsa/vcsa.go @@ -21,6 +21,7 @@ func init() { UpdateEvery: 5, // VCSA health checks freq is 5 second. }, Create: func() module.Module { return New() }, + Config: func() any { return &Config{} }, }) } @@ -38,8 +39,8 @@ func New() *VCSA { } type Config struct { + UpdateEvery int `yaml:"update_every,omitempty" json:"update_every"` web.HTTP `yaml:",inline" json:""` - UpdateEvery int `yaml:"update_every" json:"update_every"` } type ( |