*Grab the namespaces we want to collect data on:*
*sum(kube_namespace_labels{label_machineset="default"}) by (namespace)*

[image: Screenshot 2023-12-02 at 5.01.31 PM.png]
Inject Into These Results:


*kube_resourcequota{resource="limits.cpu",type="hard",namespace={only 
namespaces from previous query}}*
[image: Screenshot 2023-12-02 at 5.05.44 PM.png]

How do I go about filtering the resourcequota totals from only namespaces 
returned in first query?

Much thanks!

Chris

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a7db7391-15f3-4ac3-81de-ff7f8e85e884n%40googlegroups.com.

Reply via email to