I want to add 3 metrics using two group_left.I currently have below
expression..I also want to add *group_left*
*(label_teamname) kube_pod_labels. *If I just add group_left to this
command,it throws me aggregate group_left failed error.
sum by (namespace, pod) (
max by(namespace, pod) (
kube_pod_status_phase{job="kube-state-metrics",
namespace=~".*", phase=~"Pending|Unknown"}
) * on(namespace, pod) group_left(owner_kind) topk by(namespace,
pod) (
1, max by(namespace, pod, owner_kind)
(kube_pod_owner{owner_kind!="Job"})
)
) > 0
--
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/caec4e43-ec9e-4bda-bf2c-cbf61956aac2n%40googlegroups.com.