kube-prometheus: add alerting rules
This commit is contained in:
10
assets/prometheus/rules/kube-scheduler.rules
Normal file
10
assets/prometheus/rules/kube-scheduler.rules
Normal file
@@ -0,0 +1,10 @@
|
||||
ALERT K8SSchedulerDown
|
||||
IF absent(up{job="kube-scheduler"}) or (count by(cluster) (up{job="kube-scheduler"} == 1) == 0)
|
||||
FOR 5m
|
||||
LABELS {
|
||||
severity = "critical",
|
||||
}
|
||||
ANNOTATIONS {
|
||||
summary = "Scheduler is down",
|
||||
description = "There is no running K8S scheduler. New pods are not being assigned to nodes.",
|
||||
}
|
||||
Reference in New Issue
Block a user