How to use kube_pod_status_phase in a table

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

Display pod status along side CPU utilization and CPU memory.

  • How are you trying to achieve it?

With a table visualization

  • What happened?

Can’t get the metric kube_pod_status_phase to display correctly for each pod.

  • What did you expect to happen?

The metric to show the label setting such a Running, Pending, or Backoff

  • Can you copy/paste the configuration(s) that you are having problems with?

kube_pod_status_phase{cluster=“$cluster”, namespace=“$namespace”, phase=“.*”}

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

When the metric displays the column name either does show up or shows the wrong value and only 1.0 shows in the column.

  • Did you follow any online instructions? If so, what is the URL?

Could not find documentation on how to implement it.