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.