kube-prometheus: exclude pod log subresource from latency alerts

This commit is contained in:
Frederic Branczyk
2017-09-18 11:11:30 +02:00
parent 4b4cdb9f2f
commit c8cb2df928
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ ALERT K8SApiserverDown
ALERT K8SApiServerLatency ALERT K8SApiServerLatency
IF histogram_quantile( IF histogram_quantile(
0.99, 0.99,
sum without (instance,resource) (apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY"}) sum without (instance,resource) (apiserver_request_latencies_bucket{subresource!="log",verb!~"CONNECT|WATCHLIST|WATCH|PROXY"})
) / 1e6 > 1.0 ) / 1e6 > 1.0
FOR 10m FOR 10m
LABELS { LABELS {

View File

@@ -304,7 +304,7 @@ data:
ALERT K8SApiServerLatency ALERT K8SApiServerLatency
IF histogram_quantile( IF histogram_quantile(
0.99, 0.99,
sum without (instance,resource) (apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY"}) sum without (instance,resource) (apiserver_request_latencies_bucket{subresource!="log",verb!~"CONNECT|WATCHLIST|WATCH|PROXY"})
) / 1e6 > 1.0 ) / 1e6 > 1.0
FOR 10m FOR 10m
LABELS { LABELS {