From ead7db708e6ba351bbb796da163bdde7985a6d6e Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sun, 11 Oct 2020 21:38:48 +0200 Subject: [PATCH] alert on containers CPU: add a comment to exclude cAdvisor --- _data/rules.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_data/rules.yml b/_data/rules.yml index d16033a..aa825c8 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -245,6 +245,9 @@ groups: description: Container CPU usage is above 80% query: "(sum(rate(container_cpu_usage_seconds_total[3m])) BY (instance, name) * 100) > 80" severity: warning + comments: | + cAdvisor can sometimes consume a lot of CPU, so this alert will fire constantly. + If you want to exclude it from this alert, just use: container_cpu_usage_seconds_total{name!=""} - name: Container Memory usage description: Container Memory usage is above 80% query: "(sum(container_memory_working_set_bytes) BY (instance, name) / sum(container_spec_memory_limit_bytes > 0) BY (instance, name) * 100) > 80"