Skip to content

Instantly share code, notes, and snippets.

@omerlh
Created June 30, 2020 05:53
Show Gist options
  • Save omerlh/230a2599a6761d887dfc05b1cf6fdd56 to your computer and use it in GitHub Desktop.
Save omerlh/230a2599a6761d887dfc05b1cf6fdd56 to your computer and use it in GitHub Desktop.
sum((kube_pod_container_resource_requests_memory_bytes * on (pod, container) group_right(node) kube_pod_container_status_running) * on (node) group_left(label_cloud_google_com_gke_nodepool) kube_node_labels) by (label_cloud_google_com_gke_nodepool) / sum(node:node_memory_bytes_total:sum * on (node) group_left(label_cloud_google_com_gke_nodepool) kube_node_labels) by (label_cloud_google_com_gke_nodepool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment