Skip to content

Commit f643613

Browse files
committed
Use config clusterLabel in alert descriptions
1 parent 8f83cb6 commit f643613

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

alerts/resource_alerts.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
severity: 'warning',
3434
},
3535
annotations: {
36-
description: 'Cluster {{ $labels.cluster }} has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.',
36+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.' % $._config,
3737
summary: 'Cluster has overcommitted CPU resource requests.',
3838
},
3939
'for': '10m',
@@ -49,7 +49,7 @@
4949
severity: 'warning',
5050
},
5151
annotations: {
52-
description: 'Cluster {{ $labels.cluster }} has overcommitted memory resource requests for Pods by {{ $value | humanize }} bytes and cannot tolerate node failure.',
52+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Pods by {{ $value | humanize }} bytes and cannot tolerate node failure.' % $._config,
5353
summary: 'Cluster has overcommitted memory resource requests.',
5454
},
5555
'for': '10m',
@@ -66,7 +66,7 @@
6666
severity: 'warning',
6767
},
6868
annotations: {
69-
description: 'Cluster {{ $labels.cluster }} has overcommitted CPU resource requests for Namespaces.',
69+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Namespaces.' % $._config,
7070
summary: 'Cluster has overcommitted CPU resource requests.',
7171
},
7272
'for': '5m',
@@ -83,7 +83,7 @@
8383
severity: 'warning',
8484
},
8585
annotations: {
86-
description: 'Cluster {{ $labels.cluster }} has overcommitted memory resource requests for Namespaces.',
86+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Namespaces.' % $._config,
8787
summary: 'Cluster has overcommitted memory resource requests.',
8888
},
8989
'for': '5m',

0 commit comments

Comments
 (0)