-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: support to get rotational of the disk. #2956
Comments
For what it's worth, there is already code in place to get rotational info as reported by udev: node_exporter/collector/diskstats_linux.go Lines 252 to 258 in 94ef5cc
However, I don't have that metric available on any of the systems I personally own, and I do have rotational info in sysfs for my disks. I would also be in favor of a sysfs based method for collecting rotational info, but it might be better suited to live in github.com/prometheus/procfs, in my opinion |
Turns out it already does exist in procfs and I forgot about it! https://pkg.go.dev/github.com/prometheus/[email protected]/blockdevice#BlockQueueStats Seems we would just need to utilize it |
Yes, this seems like it would be easy to add to the |
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
Add metric to indicate if a device is rotational or not. Fixes: prometheus#2956 Signed-off-by: Pranshu Srivastava <[email protected]>
The text was updated successfully, but these errors were encountered: