mirror of
https://github.com/rfmoz/grafana-dashboards.git
synced 2024-11-09 23:24:08 -08:00
Include SReclaimable memory in Cache+Buffer memory
By default the `SReclaimable` memory is counted into the `Used` memory, which is not correct (and is a reason why the default output differs from `free`). Some references / sources: https://stackoverflow.com/a/66644946 https://www.logicmonitor.com/blog/right-way-to-monitor-linux-memory-again
This commit is contained in:
parent
10f9abba16
commit
1cec542e41
|
@ -1311,7 +1311,7 @@
|
|||
"step": 240
|
||||
},
|
||||
{
|
||||
"expr": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"} - (node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"})",
|
||||
"expr": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"} - (node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"} + node_memory_SReclaimable_bytes{instance=\"$node\",job=\"$job\"})",
|
||||
"format": "time_series",
|
||||
"hide": false,
|
||||
"intervalFactor": 1,
|
||||
|
@ -1320,7 +1320,7 @@
|
|||
"step": 240
|
||||
},
|
||||
{
|
||||
"expr": "node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"}",
|
||||
"expr": "node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"} + node_memory_SReclaimable_bytes{instance=\"$node\",job=\"$job\"}",
|
||||
"format": "time_series",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "RAM Cache + Buffer",
|
||||
|
|
Loading…
Reference in a new issue