Categorygithub.com/lorenz/zfs_exporter
repositorypackage
0.0.0-20230316005907-19470241e355
Repository: https://github.com/lorenz/zfs_exporter.git
Documentation: pkg.go.dev

# README

ZFS exporter

ZFS metrics exporter for Prometheus

:warning: This is unstable and the exported metrics will definitely still change. It might also be abandoned completely and merged into node_exporter

Notes

This currently exposes all basic stats (vdev_stats) and most extended stats (vdev_stats_ex) on a vdev-level. It doesn't expose per-disk or per-zpool stats, even though these are also available from the underlying API.

Building with version information

go build -ldflags="-s -w
  -X github.com/prometheus/common/version.Version=$(git describe --tags --dirty --always)
  -X github.com/prometheus/common/version.BuildUser=$(whoami)
  -X github.com/prometheus/common/version.BuildDate=$(date +%Y-%m-%d)
  -X github.com/prometheus/common/version.Revision=$(git rev-parse --short HEAD)
  -X github.com/prometheus/common/version.Branch=$(git rev-parse --abbrev-ref HEAD)"