Skip to content

Commit

Permalink
Merge pull request #861 from n888/master
Browse files Browse the repository at this point in the history
Add cluster label to CPUThrottling alert when showMultiCluster enabled
  • Loading branch information
povilasv authored Nov 6, 2023
2 parents 1d0c7cc + 8af7ce1 commit acfbc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alerts/resource_alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit acfbc12

Please sign in to comment.