Need query which can fetch pod info whether its up and running or not for set of pods

29 views
Skip to first unread message

Yashaswini K

unread,
Dec 17, 2022, 3:51:03 AM12/17/22
to Prometheus Users
Hi Team,

I am using this query to check all these pod statuses and trigger an alert if any one is down or if all is down. but its not working as expected, can you please help us on this.


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

Reply all
Reply to author
Forward
0 new messages