From 1cd262e712ee6355730e267a9de16f18d10f3f98 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Thu, 16 Nov 2017 23:37:15 -0800 Subject: [PATCH] addons: Fix prometheus K8SApiServerLatency alert rule * https://github.com/coreos/prometheus-operator/issues/751 --- addons/prometheus/rules.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/prometheus/rules.yaml b/addons/prometheus/rules.yaml index 5282ace9..4e4df9d1 100644 --- a/addons/prometheus/rules.yaml +++ b/addons/prometheus/rules.yaml @@ -218,8 +218,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