alexliesenfeld / health

A simple and flexible health check library for Go.
MIT License
774 stars 38 forks source link

Add disk space check #50

Closed alexliesenfeld closed 1 year ago

alexliesenfeld commented 1 year ago

It would be useful to have a library of commonly used health checks. In the scope of this issue, a health check should be implemented that checks the hosts disk space is above a preconfigured threshold (e.g. bny using syscall.Statfs and using the total and free disk blocks to see if the threshold constraints are met)

A few constraints to keep things clean and simple:

Should you have questions or require help, please join our discord chat room.

revisited-contrast commented 1 year ago

I can do this, can you please assign this to me? Thank you.