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/supervisord | |
parent | 72b72c20aa78a049ff64100f8ae9e3891cfd99eb (diff) |
go.d dyncfg add userconfig action (#17684)
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/supervisord')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/supervisord/supervisord.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/supervisord/supervisord.go b/src/go/collectors/go.d.plugin/modules/supervisord/supervisord.go index 95b7a36fe6..4c1bc8e848 100644 --- a/src/go/collectors/go.d.plugin/modules/supervisord/supervisord.go +++ b/src/go/collectors/go.d.plugin/modules/supervisord/supervisord.go @@ -18,6 +18,7 @@ func init() { module.Register("supervisord", module.Creator{ JobConfigSchema: configSchema, Create: func() module.Module { return New() }, + Config: func() any { return &Config{} }, }) } @@ -36,9 +37,9 @@ func New() *Supervisord { } type Config struct { - web.Client `yaml:",inline" json:""` - UpdateEvery int `yaml:"update_every" json:"update_every"` + UpdateEvery int `yaml:"update_every,omitempty" json:"update_every"` URL string `yaml:"url" json:"url"` + web.Client `yaml:",inline" json:""` } type ( |