Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 2.23 KB

README.md

File metadata and controls

30 lines (19 loc) · 2.23 KB

grafana-zfs-metrics

granfana-zfs-metrics-overview-1

A dashboard of metrics produced by the zpool_influxdb utility. You can read the manpage and check out the tool's GitHub page for more info on what it does and how it works.

Features include pool activity, status, queues, and individual/aggregate IO sizes.

This is a port of Scott MacDonald's influxQL / v1 dashboard. This updated dashboard supports InfluxDBv2 and is written in flux.

This dahboard is posted on Grafana's dashboards section. If you have time, I'd appreciate a rating and review there!

Configuration

This uses Telegraf with the zpool_influxdb collector. A detailed setup guide can be found over at the du.nkel.dev blog, but a simple minimal config is:

#  Read metrics from zpool_influxdb
[[inputs.exec]]
  # CHECK PATH! Default installation location for zpool_influxdb command may be elsewhere
  commands = ["/usr/lib/zfs-linux/zpool_influxdb"]
  timeout = "5s"
  data_format = "influx"

Thanks to @CalebFenton for noting data_format is needed too.

Porting Details

If you're interested in how this was ported from influxQL to flux, I have a series of posts over on my blog on the motivation and process: Part 1, Part 2, Part 3, Part 4, Part 5.