Hello Everyone,

 I am trying to combine 2 queries which do not have unique value among 
each. Can anybody please help me to find the solution.

Below are the 2 queries.

Query1 : sum by(statefulset)((kube_statefulset_replicas) == 
(kube_statefulset_status_replicas_ready))

Query2 : (kube_pod_status_phase{phase!="Succeeded"})  ==1)

I have combined 2 queries in past but those were having unique value like 
below.

sum by(namespace, pod, container) ((avg without(instance) 
(changes(kube_pod_container_status_restarts_total{namespace=~".*-prod"}[15m])))>
 
0) + on(pod, namespace) group_left(node) (sum by(pod, namespace, node) 
(kube_pod_info))

Thanks all in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/39133567-e552-4208-b84f-c9320e2b255dn%40googlegroups.com.

Reply via email to