From 134467f00ae4b1c9ac30697dec7e360f783046c7 Mon Sep 17 00:00:00 2001 From: Yahima Duarte Date: Fri, 27 Sep 2024 09:55:43 +0200 Subject: [PATCH] update cpu utilization thresholds and rule value to trigger alert (#1338) --- csp-mixin/alerts.libsonnet | 2 +- csp-mixin/panels/azurevm.libsonnet | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/csp-mixin/alerts.libsonnet b/csp-mixin/alerts.libsonnet index 915a6224e..8c3aaedc4 100644 --- a/csp-mixin/alerts.libsonnet +++ b/csp-mixin/alerts.libsonnet @@ -7,7 +7,7 @@ [ { alert: 'AzureVMHighCpuUtilization', - expr: 'avg by (%s) (%s) > 80' % + expr: 'avg by (%s) (%s) > 85' % [ std.join(',', this.config.groupLabels + this.config.instanceLabels), this.signals.azurevm.cpuUtilization.asRuleExpression(), diff --git a/csp-mixin/panels/azurevm.libsonnet b/csp-mixin/panels/azurevm.libsonnet index 3d722c783..5a564d307 100644 --- a/csp-mixin/panels/azurevm.libsonnet +++ b/csp-mixin/panels/azurevm.libsonnet @@ -200,16 +200,16 @@ local commonlib = import 'common-lib/common/main.libsonnet'; mode: 'absolute', steps: [ { - color: 'green', + color: 'yellow', value: null, }, { - color: 'orange', - value: 70, + color: 'green', + value: 30, }, { color: 'red', - value: 90, + value: 85, }, ], }, @@ -410,16 +410,16 @@ local commonlib = import 'common-lib/common/main.libsonnet'; mode: 'absolute', steps: [ { - color: 'green', + color: 'yellow', value: null, }, { - color: 'orange', - value: 70, + color: 'green', + value: 30, }, { color: 'red', - value: 90, + value: 85, }, ], },