In kube-state-metrics there is a metric for pods - kube_pod_status_ready
that has 3 attributes
pod=<pod-name>
namespace=<pod-namespace>
condition=<true|false|unknown>
What does condition
attribute stand for? I can't find it's definition anywhere in the docs. I can guess what it means, but it would be great to get a definition or explanation of how it's calculated.
That's documented in the API reference. In essence it's the condition in the
status
field for"type": "Ready"
for a given pod. For example in the following output:In this case, the sub-field
"status": "True"
representscondition=true
in your metrics. Alternatively,"status": "False"
would representcondition=false
and"status": "Unknown"
would representcondition=unknown
.