From 01111b992d07874713f0db9a8f0ee77da57fbf89 Mon Sep 17 00:00:00 2001 From: p4u1 Date: Mon, 12 Oct 2026 13:02:52 +0200 Subject: [PATCH] fix(alert): invert memory usage alert --- abra.sh | 2 +- alerts/node.yml.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index 10aaa5c..2bf76f2 100644 --- a/abra.sh +++ b/abra.sh @@ -9,7 +9,7 @@ export LOKI_YML_VERSION=v3 export PROMETHEUS_YML_VERSION=v2 export MATRIX_ALERTMANAGER_CONFIG_VERSION=v1 export MATRIX_ALERTMANAGER_ENTRYPOINT_VERSION=v1 -export GF_ALERTS_NODE_VERSION=v3 +export GF_ALERTS_NODE_VERSION=v4 export CONFIG_ALLOY_VERSION=v3 # migrates secrets from old names to new names by reading values from the diff --git a/alerts/node.yml.tmpl b/alerts/node.yml.tmpl index 244db8c..2f8cf74 100644 --- a/alerts/node.yml.tmpl +++ b/alerts/node.yml.tmpl @@ -87,7 +87,7 @@ groups: datasourceUid: PBFA97CFB590B2093 model: editorMode: code - expr: (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100 + expr: 100 - ((node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100) instant: true intervalMs: 1000 legendFormat: __auto -- 2.54.0