ZFS Prometheus exporter
Exports dataset, pool and disk/vdev statistics in a Prometheus-compatible format.
It works (as tested) on Linux and OpenBSD, plus probably others too.
go-libzfs
is based around github.com/bicomsystems/go-libzfs with a
considerable portion of the libzfs wrapping logic rewritten. Credit goes to that
implementation for the framework and pointers on how to reference the largely
undocumented (though the source itself was very helpful) libzfs.
Provided is an example Grafana dashboard that looks a little something like this
Usage
The exporter takes very few options. It supports (m)TLS/authentication via exporter-toolkit
$ zfs-exporter --help
-web.config.file string
Path to web-config file
-web.listen-address string
Address on which to expose metrics and web interface. (default ":9254")
-web.telemetry-path string
Path under which to expose metrics. (default "/metrics")