Skip to content
Snippets Groups Projects
Commit b8eb771b authored by Fabian Reinartz's avatar Fabian Reinartz Committed by GitHub
Browse files

Fix always firing alerts

parent e360f196
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment