Browse Source

fix bug in #2130 (#2170)

Signed-off-by: Yves Mettier <yves.mettier@orange.com>

Co-authored-by: Yves Mettier <yves.mettier@orange.com>
pull/2174/head
ngc104 3 years ago committed by GitHub
parent
commit
4bc1c02000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      docs/node-mixin/rules/rules.libsonnet

20
docs/node-mixin/rules/rules.libsonnet

@ -41,16 +41,18 @@
record: 'instance:node_memory_utilisation:ratio', record: 'instance:node_memory_utilisation:ratio',
expr: ||| expr: |||
1 - ( 1 - (
node_memory_MemAvailable_bytes{%(nodeExporterSelector)s}
or
( (
node_memory_Buffers_bytes{%(nodeExporterSelector)s} node_memory_MemAvailable_bytes{%(nodeExporterSelector)s}
+ or
node_memory_Cached_bytes{%(nodeExporterSelector)s} (
+ node_memory_Buffers_bytes{%(nodeExporterSelector)s}
node_memory_MemFree_bytes{%(nodeExporterSelector)s} +
+ node_memory_Cached_bytes{%(nodeExporterSelector)s}
node_memory_Slab_bytes{%(nodeExporterSelector)s} +
node_memory_MemFree_bytes{%(nodeExporterSelector)s}
+
node_memory_Slab_bytes{%(nodeExporterSelector)s}
)
) )
/ /
node_memory_MemTotal_bytes{%(nodeExporterSelector)s} node_memory_MemTotal_bytes{%(nodeExporterSelector)s}

Loading…
Cancel
Save