Skip to content

Add support for pod unscheduled timestamps in Pod Metrics #2698

Closed
@yshngg

Description

@yshngg

What would you like to be added:

Add a timestamp metric when a Pod moves into the Unschedulable status, e.g., kube_pod_status_unscheduled_time.

Why is this needed:

In our operational use case, we need to display the duration of time a Pod has been in an unschedulable status within the Kubernetes console. This visibility is critical for troubleshooting scheduling failures and monitoring cluster health.

Describe the solution you'd like

Introduce a new metric similar to kube_pod_status_unscheduled_time to capture the exact timestamp when a Pod enters the Unschedulable phase. This metric should be exposed through kube-state-metrics to enable integration with existing monitoring systems.

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions