Fix always firing alerts
This commit is contained in:
@@ -251,7 +251,7 @@ ALERT K8SApiserverDown
|
|||||||
|
|
||||||
# Disable for non HA kubernetes setups.
|
# Disable for non HA kubernetes setups.
|
||||||
ALERT K8SApiserverDown
|
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
|
FOR 5m
|
||||||
LABELS {
|
LABELS {
|
||||||
service = "k8s",
|
service = "k8s",
|
||||||
@@ -363,7 +363,7 @@ ALERT K8STooManyOpenFiles
|
|||||||
ALERT K8SApiServerLatency
|
ALERT K8SApiServerLatency
|
||||||
IF histogram_quantile(
|
IF histogram_quantile(
|
||||||
0.99,
|
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
|
) / 1e6 > 1.0
|
||||||
FOR 10m
|
FOR 10m
|
||||||
LABELS {
|
LABELS {
|
||||||
|
Reference in New Issue
Block a user