You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is interesting. I can not reproduce it on my pool.
The calculation is implemented as:
# "stats" are from the libzfs library
metric_free = stats.size - stats.allocated
But I believe this is a wrong calculation.
Could you share the output of your zpool list command of pool1? And do you have any snapshots?
Also, FYI, I would recommend using zpool_influxdb instead. It has been integrated into the ZFS apt package. You can read InfluxDB formatted metrics (InfluxDB Telegraf can read them and convert to Prometheus formatted metrics).
Also, FYI, I would recommend using zpool_influxdb instead. It has been integrated into the ZFS apt package. You can read InfluxDB formatted metrics (InfluxDB Telegraf can read them and convert to Prometheus formatted metrics).
Thanks for the recommendation but I liked this script because of the simplicity of the setup. If I migrate I might just do it with a bash oneliner or script and the node_exporter text collecter since that's already running anyway :)
Activity
matusnovak commentedon Aug 23, 2024
Hi.
This is interesting. I can not reproduce it on my pool.
The calculation is implemented as:
But I believe this is a wrong calculation.
Could you share the output of your
zpool list
command ofpool1
? And do you have any snapshots?Also, FYI, I would recommend using
zpool_influxdb
instead. It has been integrated into the ZFS apt package. You can read InfluxDB formatted metrics (InfluxDB Telegraf can read them and convert to Prometheus formatted metrics).lazaroblanc commentedon Aug 29, 2024
Ah that's interesting. Here it shows 204 G "FREE" but before with zfs list it shows 67 G "AVAIL"
AVAIL would be the correct metric since that's actually usable space. FREE shows the entirety of free space including reserved "slop space"
lazaroblanc commentedon Aug 29, 2024
Thanks for the recommendation but I liked this script because of the simplicity of the setup. If I migrate I might just do it with a bash oneliner or script and the node_exporter text collecter since that's already running anyway :)
matusnovak commentedon Nov 14, 2024
I believe I can add a metric for AVAIL.
However, due to truenas/py-libzfs#249 I am no longer able to build a new Docker image.
This issue is blocked until then :(