Skip to content

Instantly share code, notes, and snippets.

@paulp
Created April 11, 2023 21:24
Show Gist options
  • Save paulp/0d6df08b163dc1f525145ea032c7faed to your computer and use it in GitHub Desktop.
Save paulp/0d6df08b163dc1f525145ea032c7faed to your computer and use it in GitHub Desktop.
sum by (namespace) (
kube_pod_status_phase{phase="Pending",namespace="<your_namespace>"} * on(pod) group_left
(time() - kube_pod_created{namespace="<your_namespace>"}) > 300
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment