Prometheus to get trigger an alert when node is in unschedulable state

9/19/2018

Can someone help me in writing a promql query to get the node status whether node is schedulable or not. Thanks in advance.

-- vijay kumar
kubernetes
prometheus
prometheus-alertmanager

1 Answer

9/20/2018

If you use prometheus-operator, kube-state-metrics return kube_node_status_condition metric:

sum(kube_node_status_condition{condition="Ready",status!="true"})
-- Arslanbekov
Source: StackOverflow