Skip to content

Commit 01058fa

Browse files
authored
chore: Update KubeCPUOvercommit (#1050)
Signed-off-by: 7840vz <[email protected]>
1 parent 46578c1 commit 01058fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: alerts/resource_alerts.libsonnet

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ local utils = import '../lib/utils.libsonnet';
4141
(sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s)) > 0
4242
||| % $._config,
4343
annotations+: {
44-
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.' % $._config,
44+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Pods by {{ printf "%%.2f" $value }} CPU shares and cannot tolerate node failure.' % $._config,
4545
},
4646
} else {
4747
expr: |||
@@ -133,7 +133,7 @@ local utils = import '../lib/utils.libsonnet';
133133
> %(namespaceOvercommitFactor)s
134134
||| % $._config,
135135
annotations+: {
136-
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Namespaces.' % $._config,
136+
description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Namespaces.' % $._config,
137137
},
138138
} else
139139
{

0 commit comments

Comments
 (0)