We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the Memory check, physUsed is calculated by MemTotal - MemFree as shown below
physUsed
MemTotal - MemFree
physTotal = int(meminfo['MemTotal']) physFree = int(meminfo['MemFree']) physUsed = physTotal - physFree
(found at checks/system.py)
This makes it awkward (in Datadog graphs) to differentiate between memory being used by the cache and memory being used by normal processes.
I'd like to change the physUsed definition to be
physTotal = int(meminfo['MemTotal']) physFree = int(meminfo['MemFree']) physBuffers = int(meminfo['Buffers']) physCached = int(meminfo['Cached']) physUsed = physTotal - physFree - physBuffers - physCached
Alternatively, we could add another data point that represents physUsed - physBuffers - physCached. I'm at a loss on what to call it however.
physUsed - physBuffers - physCached
One side point; free deals with this problem by showing both:
free
total used free shared buffers cached Mem: 512 494 17 0 76 326 -/+ buffers/cache: 91 420
The -/+ buffers/cache line represents used - buffers - cached and free + buffers + cached
-/+ buffers/cache
used - buffers - cached
free + buffers + cached
Chris
The text was updated successfully, but these errors were encountered:
@BestFriendChris I'm going to cut a new metric for "usable" memory: free + buffers + cached. I'm cleaning up that code too as it's a bit rusty.
Sorry, something went wrong.
@alq666 Cool. My ultimate goal is to have a stacked line graph that contains (my definition of) used, buffers, cached, free
We released v2.2.9 last week. It supports additional memory metrics.
alq666
No branches or pull requests
In the Memory check,
physUsed
is calculated byMemTotal - MemFree
as shown below(found at checks/system.py)
This makes it awkward (in Datadog graphs) to differentiate between memory being used by the cache and memory being used by normal processes.
I'd like to change the physUsed definition to be
Alternatively, we could add another data point that represents
physUsed - physBuffers - physCached
. I'm at a loss on what to call it however.One side point;
free
deals with this problem by showing both:The
-/+ buffers/cache
line representsused - buffers - cached
andfree + buffers + cached
Chris
The text was updated successfully, but these errors were encountered: