Skip to content

Commit

Permalink
Plot used memory and not just "Active" memory (#74)
Browse files Browse the repository at this point in the history
Used memory = total memory - free - buffers - cache

Signed-off-by: Sai Sindhur Malleni <[email protected]>
  • Loading branch information
smalleni authored Aug 15, 2023
1 parent 87583c9 commit 8c171d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/ocp-performance.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ local nodeMemory(nodeName) = genericGraphLegendPanel('System Memory: ' + nodeNam
'node_memory_MemAvailable_bytes{instance=~"' + nodeName + '"}',
legendFormat='Available',
)
).addTarget(
prometheus.target(
'(node_memory_MemTotal_bytes{instance=~"' + nodeName + '"} - (node_memory_MemFree_bytes{instance=~"' + nodeName + '"} + node_memory_Buffers_bytes{instance=~"' + nodeName + '"} + node_memory_Cached_bytes{instance=~"' + nodeName + '"}))',
legendFormat='Used',
)
);


Expand Down

0 comments on commit 8c171d8

Please sign in to comment.