-
Notifications
You must be signed in to change notification settings - Fork 51
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
Tweak metric naming for file_* and *_now values #73
Conversation
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.
Just some of my thoughts, feel free to take or leave them as you see fit. As always, great work Mr. @joehandzik !
sources/procfs.go
Outdated
{"filesfree", "files_free_now", "The number of inodes (objects) available", s.gaugeMetric}, | ||
{"filestotal", "file_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, | ||
{"degraded", "degraded", "Binary indicator as to whether or not the pool is degraded - 0 for not degraded, 1 for degraded", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, |
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.
This might be an unpopular opinion, but I prefer inodes_free
here. I interpret inode_free
to mean whether a particular inode is free or not (which doesn't make sense), but that's just me.
sources/procfs.go
Outdated
{"filestotal", "file_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, | ||
{"degraded", "degraded", "Binary indicator as to whether or not the pool is degraded - 0 for not degraded, 1 for degraded", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, | ||
{"filestotal", "inode_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, |
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.
Same as above, inodes_capacity
is a little more straightforward in my mind.
sources/procfs.go
Outdated
{"filestotal", "file_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, | ||
{"kbytesavail", "kilobytes_available_now", "Number of kilobytes readily available in the pool", s.gaugeMetric}, | ||
{"kbytesfree", "kilobytes_free_now", "Number of kilobytes allocated to the pool", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, |
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.
See above.
sources/procfs.go
Outdated
{"kbytesavail", "kilobytes_available_now", "Number of kilobytes readily available in the pool", s.gaugeMetric}, | ||
{"kbytesfree", "kilobytes_free_now", "Number of kilobytes allocated to the pool", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, | ||
{"filestotal", "inode_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, |
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.
See above.
sources/procfs.go
Outdated
{"filestotal", "file_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, | ||
{"kbytesavail", "kilobytes_available_now", "Number of kilobytes readily available in the pool", s.gaugeMetric}, | ||
{"kbytesfree", "kilobytes_free_now", "Number of kilobytes allocated to the pool", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, |
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.
See above.
sources/procfs.go
Outdated
{"kbytesavail", "kilobytes_available_now", "Number of kilobytes readily available in the pool", s.gaugeMetric}, | ||
{"kbytesfree", "kilobytes_free_now", "Number of kilobytes allocated to the pool", s.gaugeMetric}, | ||
{"filesfree", "inode_free", "The number of inodes (objects) available", s.gaugeMetric}, | ||
{"filestotal", "inode_capacity", "The maximum number of inodes (objects) the filesystem can hold", s.gaugeMetric}, |
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.
See above.
fe93a7e
to
9b001cb
Compare
I think I prefer |
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values. Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
9b001cb
to
c61aa46
Compare
Ok, done, but with a slight change in plans. Instead of 'inodes_available', I used 'inodes_maximum' after talking with @roclark. We felt that inodes_available and inodes_free were too similar (and based on the help text, 'inodes_available' aren't really all available at all, hence the existence of inodes_free). Long-winded, but hopefully that rationale makes sense. |
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.
Looking good!
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values.
Signed-Off-By: Joe Handzik joseph.t.handzik@hpe.com