diff --git a/manifests/prometheus/prometheus-k8s-rules.yaml b/manifests/prometheus/prometheus-k8s-rules.yaml index 041c127bd05e4ed9241836afb87773413eac2690..d470c7bf0a53a78b643c2713a0428b83f800d0c1 100644 --- a/manifests/prometheus/prometheus-k8s-rules.yaml +++ b/manifests/prometheus/prometheus-k8s-rules.yaml @@ -227,8 +227,8 @@ data: disappeared from service discovery. summary: API server unreachable - alert: K8SApiServerLatency - expr: histogram_quantile(0.99, sum(apiserver_request_latencies_bucket{subresource!="log",verb!~"^(?:CONNECT|WATCHLIST|WATCH|PROXY)$"}) - WITHOUT (instance, resource)) / 1e+06 > 1 + expr: histogram_quantile(0.99, sum(rate(apiserver_request_latencies_bucket{subresource!="log",verb!~"^(?:CONNECT|WATCHLIST|WATCH|PROXY)$"}[10m])) + by (le)) / 1e+06 > 1 for: 10m labels: severity: warning