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/windows | |
parent | 72b72c20aa78a049ff64100f8ae9e3891cfd99eb (diff) |
go.d dyncfg add userconfig action (#17684)
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/windows')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/windows/windows.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/windows/windows.go b/src/go/collectors/go.d.plugin/modules/windows/windows.go index cd6af9354b..99bfecf1d2 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/windows.go +++ b/src/go/collectors/go.d.plugin/modules/windows/windows.go @@ -22,6 +22,7 @@ func init() { UpdateEvery: 5, }, Create: func() module.Module { return New() }, + Config: func() any { return &Config{} }, }) } @@ -68,9 +69,9 @@ func New() *Windows { } 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"` - Vnode string `yaml:"vnode" json:"vnode"` + Vnode string `yaml:"vnode,omitempty" json:"vnode"` } type ( |