mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-01 08:31:02 +01:00
Fix always firing alerts
This commit is contained in:
parent
e360f1963d
commit
b8eb771b1a
@ -251,7 +251,7 @@ ALERT K8SApiserverDown
|
||||
|
||||
# Disable for non HA kubernetes setups.
|
||||
ALERT K8SApiserverDown
|
||||
IF absent({job="kubernetes"}) or count by(cluster) (up{job="kubernetes"} == 1) < 2
|
||||
IF absent({job="kubernetes"}) or (count by(cluster) (up{job="kubernetes"} == 1) < count by(cluster) (up{job="kubernetes"})
|
||||
FOR 5m
|
||||
LABELS {
|
||||
service = "k8s",
|
||||
@ -363,7 +363,7 @@ ALERT K8STooManyOpenFiles
|
||||
ALERT K8SApiServerLatency
|
||||
IF histogram_quantile(
|
||||
0.99,
|
||||
sum without (instance,node,resource) (apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST"})
|
||||
sum without (instance,node,resource) (apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH"})
|
||||
) / 1e6 > 1.0
|
||||
FOR 10m
|
||||
LABELS {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user