Skip to content

[Kubernetes module] Populate kube_pod_container_status_last_terminated_exitcode #47642

@MichaelKatsoulis

Description

@MichaelKatsoulis

The metric kube_pod_container_status_last_terminated_exitcode is exposed by kube-state-metrics and provides the exit code of the last terminated container in a pod. However, this field is currently missing from our state_container metricset.
We should update the metricset to include this metric so we can track container termination reasons more accurately, especially in crash loop scenarios.

Metadata

Metadata

Labels

needs_teamIndicates that the issue/PR needs a Team:* label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions