PromQL expressions for K8S

A set of PROMQL expressions that has been the most useful for me.

  • What node got into Not Ready status?

    kube_node_status_condition{condition="Ready",status!="true"}
    

  • How many containers runs in a pod? The ~ works as a * wildcard/regex.

    kube_pod_container_info{cluster="", namespace="<project-name>",pod=~"<pod-name>"}