Hello,

I’m in the process of migrating some apps from amd64 to arm64 instances and 
was looking for help/guidance on a particular query to create a grafana 
dashboard.  What I’m trying to accomplish is displaying the number of pods 
running on a node by particular instance type/architecture.  The Karpenter 
“Pod Distribution by Instance Type” dashboard 
<https://grafana.com/grafana/dashboards/16236-pod-statistic> is what I’m 
trying to emulate.  We are not using Karpenter, so can’t use the promql 
expression they are using.

I did find this 
<https://github.com/kubernetes/kube-state-metrics/issues/1148> issue where 
someone tried to join kube_pod_labels with kube_node_labels.  I modified 
kube_state_metrics –metrics-allowlist to add the node.kubernetes.io 
instance_type and tried the following promql, but received a many-to-many 
matching not allowed Error:

*kube_pod_info * on(pod,namespace) group_right(node) kube_pod_labels * 
on(node) group_left(label_kubernetes_io_instance_type) kube_node_labels*

 Any help or guidance with this would be greatly appreciated.

 

Thanks,

Ron

 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a3373ce8-b971-405e-9061-a6694c042ff1n%40googlegroups.com.

Reply via email to