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