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 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/417db548-0a9b-494c-8bcf-175a474630f1n%40googlegroups.com.

Reply via email to