From 849e0bfd9e7131fd99f4733d14bf44887b8767c2 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Thu, 18 Jun 2026 11:18:22 +0300 Subject: [PATCH] Tune brusnika stage CPU throttling alert --- .../infrastructure/patches/prometheus-stack.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml b/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml index 01fa772..2cf61bf 100644 --- a/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml +++ b/clusters/brusnika-stage/infrastructure/patches/prometheus-stack.yaml @@ -51,6 +51,14 @@ spec: - op: replace path: /spec/groups/0/rules/4/labels/cluster value: brusnika-stage + - op: replace + path: /spec/groups/0/rules/4/expr + value: >- + ( + sum(rate(container_cpu_cfs_throttled_periods_total{container!="",namespace!="kube-system"}[15m])) by (container, pod, namespace, scope) + / + sum(rate(container_cpu_cfs_periods_total{container!="",namespace!="kube-system"}[15m])) by (container, pod, namespace, scope) + ) > 0.80 - op: replace path: /spec/groups/0/rules/5/labels/cluster value: brusnika-stage