Skip to content

Instantly share code, notes, and snippets.

@korutx
Created December 14, 2024 17:48
Show Gist options
  • Save korutx/16da096835929a2dd8656900c6fb97c8 to your computer and use it in GitHub Desktop.
Save korutx/16da096835929a2dd8656900c6fb97c8 to your computer and use it in GitHub Desktop.
Count Total Nodes GKE Autopilot
fetch k8s_node
| ${project_id_var}
| ${cluster_name_var}
| metric kubernetes.io/node/cpu/allocatable_cores
| align next_older(2m)
| group_by [resource.location], .count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment