Open mulroony opened 4 years ago
If I am reading the code correctly I believe ZFS on Linux has an upper limit for these of UInt64
This puts us in a bit of a tricky situation. If we switch parsing to uint64 it will cause type conflicts for users with influx_uint_support = true
, but users with this enabled are also precisely the ones who would want the correct uint values.
We could parse as uint64 and convert to int64 capping the values, this would be safer. Or we could adopt the policy of allowing int64 -> uint64 updates in field values. The final option would be adding new field keys and duplicating the data.
next steps: add opt-in option for users on zfs plugin to parse as unit, and test with influxdb output with uint support enabled.
Relevant telegraf.conf:
System info:
kernel-3.10.0-1127.el7.x86_64 redhat-release-server-7.8-2.el7.x86_64 telegraf-1.14.2-1.x86_64 zfs-0.8.3-1.el7.x86_64
Steps to reproduce:
Expected behavior:
Be able to handle large integers, or catch the error and still collect other stats.
Actual behavior:
[inputs.zfs] Error in plugin: strconv.ParseInt: parsing "15708770957432056996": value out of range
Additional info: