I am using metricbeat's kubernetes module and have come across what I believe is a bug. It is related to this issue: https://github.com/elastic/beats/issues/19475.
I am not a Go developer, but seems like a fix might be just as easy as declaring the effected fields as a string in this file? https://github.com/elastic/beats/blob/master/metricbeat/module/kubernetes/types.go
The solution I am proposing comes to me from reading the docs on json.Marshal here: https://golang.org/pkg/encoding/json/#Marshal.
Is anyone else running into this issue by any chance or does anyone else have any input by any chance?