kube-prometheus: exclude pod log subresource from latency alerts
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user