Skip to content

Include labels and annotations in all Kubernetes metricsets #7148

@exekias

Description

@exekias

Metricbeat doesn't include object labels and annotations on Kubernetes metricsets. As of today It's possible to enrich pod, container, state_pod and state_container events using add_kubernetes_metadata, but it would be nice to automatically add these fields to all object kinds, without the processor.

We should implement a metadata retrieval mechanism (or watcher) for all object kinds, and use a configuration similar to add_kubernetes_metadata to whitelist labels and annotations.

As a result, all kubernetes metricsets should include kubernetes.labels and kubernetes.annotations if the user wants them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions