Skip to content

[receiver/k8scluster] Add phase datapoint attribute for k8s.pod.phase metric #36819

Open
@yuri-rs

Description

@yuri-rs

Component(s)

receiver/k8scluster

Is your feature request related to a problem? Please describe.

I'd like to use phase label selector for k8s.pod.phase metric. It is much more convinient and natural to use label filters.

Describe the solution you'd like

I would like to have phase=<Pending|Running|Succeeded|Failed|Unknown> label for k8s.pod.phase metric to be able to use it in queries, like:
k8s.pod.phase{phase="Failed"}

Describe alternatives you've considered

No response

Additional context

Please note that phase is emited as label in https://github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/workload/pod-metrics.md
See:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions