Hi Team,

Need one help, i would need to write a query which will check pod status 
for all cluster operator pods for all operator namespaces and trigger an 
alert along with details all of them are down or whichever pod is down.

below query can be used for the same? will it print whichever pod is down 

absent(kube_pod_info{pod=~".*authentication-operator.*|.*etcd-operator.*|.*ingress-operator.*|.*kube-apiserver-operator.*|.*kube-controller-manager-operator.*|.*kube-scheduler-operator.*|.*kube-storage-version-migrator-operator.*|.*monitoring-operator.*|.*network-operator.*|.*openshift-apiserver-operator.*|.*openshift-controller-manager-operator.*|.*cloud-credential-operator.*|.*cluster-autoscaler-operator.*|.*openshift-config-operator.*|.*console-operator.*|.*machine-api-operator.*|.*machine-approver.*|.*machine-config-operator.*|.*node-tuning-operator.*|.*storage-operator.*|.*prometheus-operator.*"})
 
== 1

 

-- 
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/cbd21e2a-910c-4e51-a18a-99f39996967cn%40googlegroups.com.

Reply via email to