From 332d7a4e392805b0ff02e2faa8ec5ca09f70b6de Mon Sep 17 00:00:00 2001
From: Chris Wedgwood <cw@f00f.org>
Date: Wed, 30 Jan 2019 08:36:13 +0000
Subject: [PATCH] [Prometheus] Tweak K8SApiServerLatency to ignore
 DELETECOLLECTION

DELETECOLLECTION for some things like namespaces can be very slow.  As
it's not critical it should be safe to ignore it.

Change-Id: I513b2af45b703a73d20a98a7a770776632ae4b39
---
 prometheus/values.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/prometheus/values.yaml b/prometheus/values.yaml
index 1d92467b0..22e1c073b 100644
--- a/prometheus/values.yaml
+++ b/prometheus/values.yaml
@@ -1193,7 +1193,7 @@ conf:
               description: Prometheus failed to scrape API server(s), or all API servers have disappeared from service discovery.
               summary: API server unreachable
           - alert: K8SApiServerLatency
-            expr: histogram_quantile(0.99, sum(apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY"}) WITHOUT (instance, resource)) / 1e+06 > 1
+            expr: histogram_quantile(0.99, sum(apiserver_request_latencies_bucket{verb!~"CONNECT|WATCHLIST|WATCH|PROXY|DELETECOLLECTION"}) WITHOUT (instance, resource)) / 1e+06 > 1
             for: 10m
             labels:
               severity: warning