btrfs_device_stats munin plugin
Munin plugin to get results form
btrfs device stats
This plugin depdends on python3-btrfs and was inspired by the btrfs Munin plugin packed on Debian.
def main(): for fs in btrfs.utils.mounted_filesystems(): devices = fs.devices() if len(sys.argv) > 1 and sys.argv == 'config': munin_config(fs, devices) else: munin_values(fs, devices)
I have directly updated the snippet as this doesn't change any other thing in the algorithms.