AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
4.75k stars 158 forks source link

[FEAT] Monitoring filesystem stats - specifically BTRFS dev stats #329

Open iamwoz opened 2 years ago

iamwoz commented 2 years ago

There is a real shortage of tools to monitor BTRFS filesystems and devices (these scripts are about as good as it gets https://github.com/kdave/btrfsmaintenance).

Is there any interest in monitoring BTRFS stats that indicate failures? This simple command along with your built-in notification system would be awesome.

btrfs dev stats [mountpoint]

image

AnalogJ commented 1 year ago

cool idea, but this would be monitoring at the filesystem level, rather than the device level. Scrutiny doesn't really have any concept of filesystems (or virtual devices -- like RAID) so it would definitely require some changes to the UI, but the collector model is designed to support use-cases like this.

Honestly the biggest issue is that I don't use BTRFS (or RAID) so it makes it difficult for me to test & develop robust collectors for these use-cases. If you'd be willing to spec the requirements for a simple BTRFS simple collector (in this issue or via a PR), I'd be happy to discuss, but I don't think this would be something I could take on myself.