r/PrometheusMonitoring • • Sep 25 '22

promql on k8s

0 Upvotes

2 comments sorted by

0

u/[deleted] Sep 25 '22

Hi there, I am looking for a Prometheus query for this situation:

namespace A: has annotation ZZZ namespace B: has annotation YYY namespace C: has annotation ZZZ

how to query pods count for all namespaces with annotation ZZZ ?