Skip to content

Add SchedulingGated reason to kube_pod_status_reason metric #2848

@jjacobelli

Description

@jjacobelli

What would you like to be added:

Currently, there is no metrics exposing if a pod is in Pending phase because it is SchedulingGated. Having kube_pod_status_reason exposing this would help to write better alerting rules to prevent sending alerts for pending pods if they are just in SchedulingGated phase.

Why is this needed:

Preventing alert rules to trigger on Pending pods that are in SchedulingGated state

Describe the solution you'd like:

Add SchedulingGated reason to the kube_pod_status_reason metrics

Additional context:

I can open a PR to fix this issue if that can help.

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

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions