diff --git a/cmd/mdatagen/metricdata.go b/cmd/mdatagen/metricdata.go index 27c772c90c6b..c44cf4d70751 100644 --- a/cmd/mdatagen/metricdata.go +++ b/cmd/mdatagen/metricdata.go @@ -83,7 +83,7 @@ func (ndp NumberDataPoints) BasicType() string { } type gauge struct { - NumberDataPoints `yaml:",inline"` + NumberDataPoints `mapstructure:",squash"` } func (d gauge) Type() string {