node-os-monitor icon indicating copy to clipboard operation
node-os-monitor copied to clipboard

[Feature Request] How about adding support for Disk Usage

Open i-break-codes opened this issue 5 years ago • 3 comments
trafficstars

I was thinking it would be great if you add support for monitoring disk usage. If it hits < N GB, it will raise alerts.

i-break-codes avatar Mar 11 '20 07:03 i-break-codes

Thanks @i-break-codes for opening this feature request.

The module os-monitor was originally meant to be used along with the os core module in Node.js . However, I will keep this issue opened for future reference. I may consider adding free disk space checking in the future.

Meanwhile, here are a few modules you may use to monitor free disk space:

https://www.npmjs.com/package/node-df https://www.npmjs.com/package/check-disk-space

lfortin avatar Mar 15 '20 13:03 lfortin

@i-break-codes

I found a related pending PR in the Node.js project: https://github.com/nodejs/node/pull/31351

If it is merged into Node.js core, I will consider adding support for disk usage monitoring into os-monitor.

lfortin avatar May 06 '20 03:05 lfortin

Hey, thanks for the update. Am already using another tools but I thought to suggest you this as it will help you complete your package in a way as it's relevant.

Also, glad to hear that you will consider adding the support going forward. Looking forward to it 🙂

i-break-codes avatar May 09 '20 19:05 i-break-codes

Support for disk usage added.

lfortin avatar Mar 27 '23 21:03 lfortin