Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 758
vijay kumar Avatar asked Sep 19 '18 21:09

vijay kumar


People also ask

How does Prometheus Alertmanager work?

The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.


1 Answers

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

sum(kube_node_status_condition{condition="Ready",status!="true"})
like image 163
Denis Avatar answered Sep 28 '22 17:09

Denis