diff --git a/alerts/resource_alerts.libsonnet b/alerts/resource_alerts.libsonnet index 46225afcf..616776f12 100644 --- a/alerts/resource_alerts.libsonnet +++ b/alerts/resource_alerts.libsonnet @@ -199,9 +199,9 @@ { alert: 'CPUThrottlingHigh', expr: ||| - sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (container, pod, namespace) + sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace) / - sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (container, pod, namespace) + sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace) > ( %(cpuThrottlingPercent)s / 100 ) ||| % $._config, 'for': '15m',