-
Notifications
You must be signed in to change notification settings - Fork 5.8k
zfs parsing error #11089
Copy link
Copy link
Labels
Description
Relevant telegraf.conf
[[inputs.zfs]]
poolMetrics = true
datasetMetrics = trueLogs from Telegraf
[inputs.zfs] Error in plugin: Error parsing avail "-": strconv.ParseInt: parsing "-": invalid syntax
It seems to be an issue on parsing zfs volumes which dont have a mount point ? Not sure
But with debug on
> zfs_dataset,dataset=zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1,host=b4.sentex.ca avail=11328588255296i,used=486662039936i,usedds=142848i,usedsnap=0i 1652372245000000000
> zfs_dataset,dataset=zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1/sqlBACKUP,host=b4.sentex.ca avail=11328588255296i,used=83328i,usedds=83328i,usedsnap=0i 1652372245000000000
2022-05-12T16:17:25Z E! [inputs.zfs] Error in plugin: Error parsing avail "-": strconv.ParseInt: parsing "-": invalid syntax
zfs list -r zbackup2s/zrepl/sink2/sentex-cam.sentex.ca/tank1
NAME USED AVAIL REFER MOUNTPOINT
zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1 453G 10.3T 140K none
zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1/sqlBACKUP 81.4K 10.3T 81.4K -
zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1/sqlDB 197G 10.3T 197G -
zbackup22/zrepl/sink2/sentex-cam.sentex.ca/tank1/tank1-vms 256G 10.3T 249G none
System info
telegraf --version Telegraf 1.22.3, FreeBSD 12.3
Docker
No response
Steps to reproduce
telegraf --debug --test --config telegraf.conf
But it doesnt seem to cause issues on other servers where I have volumes, so not sure what else is going on.
Expected behavior
Not throw that error and stop collecting arcstats
Actual behavior
Telegraf hits that error and does not proceed to collect / report the rest of the datasets nor arcstats
Additional info
No response
Reactions are currently unavailable