<p>I've set up prometheus to monitor kubernetes metrics by following the prometheus  <a href="https://github.com/prometheus/docs/blob/master/content/docs/operating/configuration.md" rel="noreferrer">documentation</a>.</p>

<p>A lot of useful metrics now show up in prometheus.</p>

<p>However, I can't see any metrics referencing the status of my pods or nodes.</p>

<p>Ideally - I'd like to be able to graph the pod status (Running, Pending, CrashLoopBackOff, Error) and nodes (NodeReady, Ready).</p>

<p>Is this metric anywhere? If not, can I add it somewhere? And how?</p>

<p>The regular kubernetes setup does not expose these metrics - further discussion <a href="https://github.com/kubernetes/kubernetes/pull/31107#discussion_r75673822" rel="noreferrer">here</a>. </p>

<p>However, another service can be used to collect these cluster level metrics: <a href="https://github.com/kubernetes/kube-state-metrics" rel="noreferrer">https://github.com/kubernetes/kube-state-metrics</a>.</p>

<p>This currently provides node_status_ready and pod_container_restarts which sound like what I want.</p>
