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

Co-authored-by: Yves Mettier <yves.mettier@orange.com>
This commit is contained in:
ngc104 2021-10-21 12:07:38 +02:00 committed by GitHub
parent a59b2d8990
commit 4bc1c02000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -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}