Hello. In continuing with our move to graviton and wanting to visualize that effort via dashboards, we are wanting to not only track the nodes that have been converted to graviton, but also apps (deployments, statefulsets, daemonset, etc…) running on graviton nodes.
After adding the --metric-labels-allowlist=nodes=[
kubernetes.io/arch
]
arg to our kube-state-metrics
manifest, we were able to graph the number of x86
vs arm64
nodes using the following query in prometheus:
sum(kube_node_labels) by (label_kubernetes_io_arch)
Still somewhat of a newbie to promql, but is there a way to query the number of pods that are running on each node based on the architecture of the node?
Any help with this would be greatly appreciated.