Skip to content

Commit 8af7ce1

Browse files
committed
fix spacing
1 parent 152ade5 commit 8af7ce1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

alerts/resource_alerts.libsonnet

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@
198198
},
199199
{
200200
alert: 'CPUThrottlingHigh',
201+
expr: |||
202+
sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
203+
/
204+
sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
205+
> ( %(cpuThrottlingPercent)s / 100 )
206+
||| % $._config,
201207
'for': '15m',
202208
labels: {
203209
severity: 'info',
@@ -206,13 +212,7 @@
206212
description: '{{ $value | humanizePercentage }} throttling of CPU in namespace {{ $labels.namespace }} for container {{ $labels.container }} in pod {{ $labels.pod }}.',
207213
summary: 'Processes experience elevated CPU throttling.',
208214
},
209-
expr: |||
210-
sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
211-
/
212-
sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace)
213-
> ( %(cpuThrottlingPercent)s / 100 )
214-
||| % $._config,
215-
},
215+
},
216216
],
217217
},
218218
],

0 commit comments

Comments
 (0)