From 90706282ad429e22996edcd037048b0c385593c2 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Mon, 11 Mar 2024 22:55:05 +0100 Subject: [PATCH] Update rules.yml --- _data/rules.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_data/rules.yml b/_data/rules.yml index 42ff8f0..4a879d5 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -401,9 +401,9 @@ groups: for: 2m - name: Container high throttle rate description: Container is being throttled - query: "rate(container_cpu_cfs_throttled_seconds_total[3m]) > 1" + query: 'sum(increase(container_cpu_cfs_throttled_periods_total{container!=""}[5m])) by (container, pod, namespace) / sum(increase(container_cpu_cfs_periods_total[5m])) by (container, pod, namespace) > ( 75 / 100 )' severity: warning - for: 2m + for: 5m - name: Container Low CPU utilization description: Container CPU utilization is under 20% for 1 week. Consider reducing the allocated CPU. query: '(sum(rate(container_cpu_usage_seconds_total{container!=""}[5m])) by (pod, container) / sum(container_spec_cpu_quota{container!=""}/container_spec_cpu_period{container!=""}) by (pod, container) * 100) < 20'