Hi, I am trying to count namespaces on a k8s cluster which have running pods (not the number of pods itself).
sum(count(count by(namespace) (kube_pod_info{namespace=~"^project-.*$", instance="project-prod-k8s:9090"}))) by (count)
This works quite well - but the query returns rows as well as an instant (for the last value) and so I have two entries in my graph:
What is the (maybe total obvious) mistake here?
Thanks in advance,
Jan