Skip to content

Commit acfbc12

Browse files
authored
Merge pull request #861 from n888/master
Add cluster label to CPUThrottling alert when showMultiCluster enabled
2 parents 1d0c7cc + 8af7ce1 commit acfbc12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alerts/resource_alerts.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@
199199
{
200200
alert: 'CPUThrottlingHigh',
201201
expr: |||
202-
sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (container, pod, namespace)
202+
sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
203203
/
204-
sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (container, pod, namespace)
204+
sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
205205
> ( %(cpuThrottlingPercent)s / 100 )
206206
||| % $._config,
207207
'for': '15m',

0 commit comments

Comments
 (0)