Skip to content

kube_inventory input plugin: add pod UID to kubernetes_pod_container #18165

@OrBin

Description

@OrBin

Use Case

In some cases, subsequent pods have the same name (e.g. when pods are only by a StatefulSet).
In these cases, the kubernetes_pod_container metric cannot indicate which one of the pods it is, as there's only a pod_name tag and no pod_uid tag.

Expected behavior

Provide a pod_uid tag in kubernetes_pod_container metric.

Actual behavior

No pod_uid tag.

Additional info

Briefly looking at the plugin's code, it seems quite easy to do, so I'm willing to submit a PR for that if you accept the suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions