Skip to content

Instantly share code, notes, and snippets.

@brancz
Created February 17, 2020 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brancz/d5c1db85cd09ccf42229f9c2c162ab18 to your computer and use it in GitHub Desktop.
Save brancz/d5c1db85cd09ccf42229f9c2c162ab18 to your computer and use it in GitHub Desktop.
Resource saturation by requests per node roles.
(sum by(role) (kube_pod_container_resource_requests_cpu_cores * on(node) group_left(role) kube_node_role)) / (sum by(role) (kube_node_status_allocatable_cpu_cores * on(node) group_left(role) kube_node_role))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment