From db201550a2f2863a2a4dd1c9530d074c114d482b Mon Sep 17 00:00:00 2001 From: vexxhost-bot <105816074+vexxhost-bot@users.noreply.github.com> Date: Tue, 16 Jul 2024 05:09:39 +0200 Subject: [PATCH] [stable/2023.1] fix: nova capacity alert (#1595) This is an automated cherry-pick of #1306 /assign mnaser --- roles/kube_prometheus_stack/files/jsonnet/openstack.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kube_prometheus_stack/files/jsonnet/openstack.libsonnet b/roles/kube_prometheus_stack/files/jsonnet/openstack.libsonnet index 0824e0793..982d59494 100644 --- a/roles/kube_prometheus_stack/files/jsonnet/openstack.libsonnet +++ b/roles/kube_prometheus_stack/files/jsonnet/openstack.libsonnet @@ -259,7 +259,7 @@ description: 'The cloud capacity is currently at `{{ $value }}` which means there is a risk of running out of capacity due to the timeline required to add new nodes. Please ensure that adequate amount of infrastructure is assigned to this deployment to prevent this.', summary: '[nova] Capacity risk', }, - expr: 'sum ( openstack_nova_memory_used_bytes + on(hostname) group_left(adminState) (0 * openstack_nova_agent_state{exported_service="nova-compute",adminState="enabled"}) ) / sum ( openstack_nova_memory_available_bytes + on(hostname) group_left(adminState) (0 * openstack_nova_agent_state{exported_service="nova-compute",adminState="enabled"}) ) * 100 > 75', + expr: 'sum ( openstack_nova_memory_used_bytes + on(hostname) group_left(adminState) (0 * openstack_nova_agent_state{exported_service="nova-compute",adminState="enabled"}) ) / sum ( openstack_nova_memory_available_bytes*0.90 + on(hostname) group_left(adminState) (0 * openstack_nova_agent_state{exported_service="nova-compute",adminState="enabled"}) ) * 100 > 75', 'for': '6h', labels: { severity: 'warning',