-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
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
Create a metricset for swap and load #2072
Create a metricset for swap and load #2072
Conversation
6fc7e26
to
0e33430
Compare
@@ -0,0 +1,11 @@ | |||
=== System CPU Metricset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be load?
I really like this change as I think it makes finding the right metrics easier and also simplifies the code. |
|
||
|
||
[float] | ||
== swap Fields | ||
=== system.memory.active |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have a more detailed description for some of these fields and possibly how the data is collected (e.g. read from /proc/meminfo or same values reported by vmstat -a
).
Active — The total amount of buffer or page cache memory, in kilobytes, that is in active use. This is memory that has been recently used and is usually not reclaimed for other purposes.
Inactive — The total amount of buffer or page cache memory, in kilobytes, that are free and available. This is memory that has not been recently used and can be reclaimed for other purposes.
I think this is going to break openbsd support which was added to gosigar. |
df23655
to
0ee0318
Compare
@@ -26,7 +28,10 @@ | |||
|
|||
SYSTEM_FSSTAT_FIELDS = ["count", "total_files", "total_size"] | |||
|
|||
SYSTEM_MEMORY_FIELDS = ["swap", "actual", "free", "total", "used.bytes", "used.pct"] | |||
SYSTEM_MEMORY_FIELDS = ["available", "free", "total", "used.bytes", "used.pct", "active", "inactive", "wired", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to remove "active", "inactive" ...
description: > | ||
Actual available memory. This value is the "free" memory plus the memory used for disk caches and | ||
buffers. Available only on Unix. | ||
Free memory. For a human readable value use Available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"human readable" means to me that it's the same value formatted with units like MB or GB. It's like df -h
.
Consider saying this "The total amount of free memory in bytes. This value does not include memory consumed by system caches and buffers (see system.memory.available
)."
The system/load package must have a |
I'm not fully convinced that |
@andrewkroh I agree |
@monicasarbu @andrewkroh What about the |
Yeah, I also liked the |
I created another PR to add the |
This PR includes the following changes:
This PR includes few breaking changes:
system.memory.actual.free
is replace withsystem.memory.available
system.memory.actual.used
is not needed as it can calculated fromsystem.memory.total
-system.memory.available
swap
andload
if you want to export these data. They are not part ofmemory
andcpu
anymore.cc-ed @ruflin @andrewkroh