From 4bc1c02000d9e2f3ef38d6d4b647241c7a625d5c Mon Sep 17 00:00:00 2001 From: ngc104 <67380650+ngc104@users.noreply.github.com> Date: Thu, 21 Oct 2021 12:07:38 +0200 Subject: [PATCH] fix bug in #2130 (#2170) Signed-off-by: Yves Mettier Co-authored-by: Yves Mettier --- docs/node-mixin/rules/rules.libsonnet | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/node-mixin/rules/rules.libsonnet b/docs/node-mixin/rules/rules.libsonnet index 154bb9d0..df62e4d4 100644 --- a/docs/node-mixin/rules/rules.libsonnet +++ b/docs/node-mixin/rules/rules.libsonnet @@ -41,16 +41,18 @@ record: 'instance:node_memory_utilisation:ratio', expr: ||| 1 - ( - node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} - or ( - node_memory_Buffers_bytes{%(nodeExporterSelector)s} - + - node_memory_Cached_bytes{%(nodeExporterSelector)s} - + - node_memory_MemFree_bytes{%(nodeExporterSelector)s} - + - node_memory_Slab_bytes{%(nodeExporterSelector)s} + node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} + or + ( + node_memory_Buffers_bytes{%(nodeExporterSelector)s} + + + node_memory_Cached_bytes{%(nodeExporterSelector)s} + + + node_memory_MemFree_bytes{%(nodeExporterSelector)s} + + + node_memory_Slab_bytes{%(nodeExporterSelector)s} + ) ) / node_memory_MemTotal_bytes{%(nodeExporterSelector)s}