Deploy an hourly systemd timer that writes pool and dataset capacity to node_exporter's textfile collector, since --collector.zfs exposes only ARC/I-O/state. Add a provisioned 'ZFS - Pools & Datasets' dashboard with per-pool totals, per-dataset used/quota and daily growth panels.
11 lines
183 B
Django/Jinja
11 lines
183 B
Django/Jinja
[Unit]
|
|
Description=Timer for ZFS capacity metrics collection
|
|
|
|
[Timer]
|
|
OnCalendar={{ zfs_metrics_interval }}
|
|
Persistent=true
|
|
Unit=zfs-metrics.service
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|