zfs-exporter

command module
v0.0.0-...-1987824 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

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 grafana

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")

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL