beats
beats copied to clipboard
Add resource metadata in all possible Kubernetes module metricsets
As described in https://github.com/elastic/beats/issues/33108 resource metadata such as namespace and node labels/annotations are present only in specific kubernetes metricsets.
In 8.1 release with https://github.com/elastic/beats/pull/29133 , the metricset level enrichers where enhanced to add those metadata. But that was only for pod/container and service.
It makes sense to add those metadata for other namespaced resources such as deployment, replicates, jobs, cronjob, statefulset and daemonset.