From 03fb97d42f28414762c4954b6b959740e8fa7d32 Mon Sep 17 00:00:00 2001 From: "Tien M. Nguyen" Date: Tue, 12 Mar 2024 11:51:32 +0100 Subject: [PATCH] feat: include cluster info in alert CPUThrottlingHigh (#5956) --- app/vmalert/config/testdata/rules/kube-good.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmalert/config/testdata/rules/kube-good.rules b/app/vmalert/config/testdata/rules/kube-good.rules index 25ab513fc..070994f46 100644 --- a/app/vmalert/config/testdata/rules/kube-good.rules +++ b/app/vmalert/config/testdata/rules/kube-good.rules @@ -1158,9 +1158,9 @@ $labels.pod }}.' runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-cputhrottlinghigh expr: | - sum(increase(container_cpu_cfs_throttled_periods_total{container!="", }[5m])) by (container, pod, namespace) + sum(increase(container_cpu_cfs_throttled_periods_total{container!="", }[5m])) by (cluster, container, pod, namespace) / - sum(increase(container_cpu_cfs_periods_total{}[5m])) by (container, pod, namespace) + sum(increase(container_cpu_cfs_periods_total{}[5m])) by (cluster, container, pod, namespace) > ( 25 / 100 ) for: 15m labels: