diff --git a/pkg/servergroup/config.go b/pkg/servergroup/config.go index 088c6c4f7..31e540191 100644 --- a/pkg/servergroup/config.go +++ b/pkg/servergroup/config.go @@ -209,6 +209,11 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error { return nil } +// MarshalYAML implements the yaml.Marshaler interface. +func (c *Config) MarshalYAML() (interface{}, error) { + return discovery.MarshalYAMLWithInlineConfigs(c) +} + // HTTPClientConfig extends prometheus' HTTPClientConfig type HTTPClientConfig struct { DialTimeout time.Duration `yaml:"dial_timeout"`