ZPOOL_INFLUXDB(8)
β¨ zpool_influxdb β the ZFS-pool-stats-to-InfluxDB glow-up β¨
ok so bestie, you found the man page for zpool_influxdb(8) π it lives in the System Manager's Manual, and it's literally the tool that takes your zpool's whole vibe and translates it into InfluxDB line protocol so your dashboards can eat. let's go π¦
πΈ SYNOPSIS πΈ
zpool_influxdb [-e|--execd] [-n|--no-histogram]
[-s|--sum-histogram-buckets]
[-t|--tags key=value[,key=value]β¦] [pool]
like yes, that's the whole thing, and yes, it's giving "short and powerful" π
π« DESCRIPTION π«
so. zpool_influxdb produces InfluxDB-line-protocol-compatible metrics from zpools. periodt.
here's the tea: just like the zpool command, zpool_influxdb reads the current pool status and statistics. but unlike zpool, which is out here writing for humans (bless), zpool_influxdb formats the output in the InfluxDB line protocol. the whole point? it's meant to be a plugin for a metrics collector or aggregator β think Telegraf and friends. iykyk π
by default, zpool_influxdb prints pool metrics and status in the InfluxDB line protocol format. all pools get printed, just like the zpool status command does. but if you hand it a pool name, the output gets restricted to just that named pool. no cap. β¨
π OPTIONS π
-e,--execdβ run in daemon mode, compatible with Telegraf'sexecdplugin. in this mode, the pools are sampled every single time a newline shows up on standard input. every. single. time. π-n,--no-histogramβ do not print latency and I/O size histograms. this can reduce the total amount of data, but lowkey you should consider the value brought by the insights that latency and I/O size distributions provide π₯Ί. the resulting values are suitable for graphing with Grafana's heatmap plugin.-s,--sum-histogram-bucketsβ accumulates bucket values. by default the values are not accumulated, and the raw data appears as shown byzpool iostat. that raw look works well for Grafana's heatmap plugin. summing the buckets instead produces output similar to Prometheus histograms. different vibe, both valid π-t,--tags key=value[,key=value]β¦β adds the specified tags to the tag set. no sanity checking is performed π so like, that's on you, bestie. see the InfluxDB Line Protocol format documentation for the details on escaping special characters used in tags.-h,--helpβ print a usage summary. the classic. the icon. π
π₯ SEE ALSO π₯
zpool-iostat(8)zpool-status(8)- InfluxDB: https://github.com/influxdata/influxdb
- Telegraf: https://github.com/influxdata/telegraf
- Grafana: https://grafana.com
- Prometheus: https://prometheus.io
ok and that's the whole page!! go forth and make your metrics immaculate π«Ά
this one's from OpenZFS, dated May 26, 2021 β mwah, iconic, no notes π π
π¦ where this page comes from
- alpine 3.22: zfs-doc 2.3.9-r0 Β· CDDL-1.0
- alpine 3.23: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- alpine 3.24: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- debian trixie: zfsutils-linux 2.3.9-0+deb13u1 Β· CDDL-1.0
- nixos 26.05: zfs-user 2.4.4
- nixpkgs unstable: zfs-user 2.4.4
- ubuntu questing: zfsutils-linux 2.3.4-1ubuntu2
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5 Β· CDDL-1.0
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5.1 Β· CDDL-1.0
- ubuntu stonking: zfsutils-linux 2.4.4-1ubuntu4 Β· CDDL-1.0
- π the page's license: CDDL-1.0
- Copyright 2020 Richard Elling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms