enhancement request: memory usage in real values
Hi,
We need an historic graph of the real values of Physical, Actual and Swap memory usage.
But only the percent values are stored in the rrd files. Has someone already patched the sources to create rrd files with the real values? If so, can I have the patch :) Otherwise I have to brush up my C knowledge and do it myself.
Stef
On 25/02/19 10:44, Stef Coene wrote:
Hi,
We need an historic graph of the real values of Physical, Actual and Swap memory usage.
But only the percent values are stored in the rrd files. Has someone already patched the sources to create rrd files with the real values? If so, can I have the patch :) Otherwise I have to brush up my C knowledge and do it myself.
Are you needing Windows or Unix boxes? If Unix you are in luck, you are probably already collecting mem_free in vmstat.rrd, in fact if you are looking at Solaris, there is already a standard graph definition (vmstat6) you can configure in TRENDS. This doesnt work óut of the box'on the vmstat.rrd collected by linux servers, but you could probably create a version that gives you something. __ Andy
On 25/02/19 19:49, Andy Smith wrote:
On 25/02/19 10:44, Stef Coene wrote:
Hi,
We need an historic graph of the real values of Physical, Actual and Swap memory usage.
But only the percent values are stored in the rrd files. Has someone already patched the sources to create rrd files with the real values? If so, can I have the patch :) Otherwise I have to brush up my C knowledge and do it myself.
Are you needing Windows or Unix boxes? If Unix you are in luck, you are probably already collecting mem_free in vmstat.rrd, in fact if you are looking at Solaris, there is already a standard graph definition (vmstat6) you can configure in TRENDS. This doesnt work óut of the box'on the vmstat.rrd collected by linux servers, but you could probably create a version that gives you something.
It's for windows boxes.
Stef
Hi,
In case someone is interested, I created a patch for this:
renamed function get_mem_percent to get_percent
created new function get_percent -> this searches for the 3 values for used, total and percent
renamed function do_memory_rrd_update to do_memory_rrd_update_pct
created new function do_memory_rrd_update -> the rrd created start with absolute-memory and contains the used and total values
Stef
participants (2)
-
abs@shadymint.com
-
stef.coene@docum.org