mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 06:04:20 -08:00
mixin: Add fallback for MemAvailable (#2130)
Add a fallback to Buffers+Cached+MemFree+Slab for older Linux kernels where the MemAvailable metric is not available for memory utilization. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
0aec407666
commit
aeef1edd62
|
@ -42,6 +42,16 @@
|
|||
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_MemTotal_bytes{%(nodeExporterSelector)s}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue