The trick is to do a "join", which in PromQL terms can be an arithmetic expression. Since the value of the first set of series is always 1, you can join by multiplying the two together.
On Monday, 4 December 2023 at 14:12:57 UTC chris...@gmail.com wrote: > *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/bf617f50-4517-4f9b-aae1-974f5be4f072n%40googlegroups.com.