I am looking for the possibility to gather metrics from ZFS pools and datasets. Sadly this seems not to be implemented in metricbeat (Metricbeat: Add support for ZFS metrics · Issue #10848 · elastic/beats · GitHub). I thought of adding a module with the two metrics pool and dataset and take all data from the zfs and zpool command line tools via a simple wrapper (GitHub - mistifyio/go-zfs: Go wrappers for ZFS commands).
Or are there any better solutions?