Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD 11.2-RELEASE ZFS input fails on parsing capacity #4390

Closed
theory14 opened this issue Jul 6, 2018 · 1 comment
Closed

FreeBSD 11.2-RELEASE ZFS input fails on parsing capacity #4390

theory14 opened this issue Jul 6, 2018 · 1 comment
Labels
bug unexpected problem or unintended behavior platform/bsd

Comments

@theory14
Copy link

theory14 commented Jul 6, 2018

Relevant telegraf.conf:

[[inputs.zfs]]
poolMetrics = true

System info:

FreeBSD 11.2-RELEASE
telegraf 1.6.3 (from ports/pkg)

Steps to reproduce:

  1. System was previously FreeBSD 11.1-RELEASE
  2. See that telegraf was reporting zfs stats
  3. Upgrade to 11.2-RELEASE
  4. 11.2 added some new zfs features
  5. telegraf failed to report zfs stats (zpool status contained message about upgrading the pool)
  6. Run "zpool upgrade"
  7. Now telegraf reports the following error:
telegraf -test -config /usr/local/etc/telegraf.conf --input-filter zfs
* Plugin: inputs.zfs, Collection 1
2018-07-05T23:58:41Z E! Error parsing capacity: strconv.ParseInt: parsing "1%": invalid syntax

Expected behavior:

Telegraf to report zfs stats

Actual behavior:

Telegraf reports error as listed above.

Additional info:

zpool list -Hp 
data	996432412672	18496188416	977936224256	-	-	1%	1	1.00x	ONLINE	-
zroot	117037858816	10298671104	106739187712	-	-	4%	8	1.00x	ONLINE	-
zpool list    
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
data    928G  17.2G   911G        -         -     1%     1%  1.00x  ONLINE  -
zroot   109G  9.59G  99.4G        -         -     4%     8%  1.00x  ONLINE  -
@danielnelson danielnelson added bug unexpected problem or unintended behavior platform/bsd labels Jul 6, 2018
@danielnelson
Copy link
Contributor

This is actually a duplicate of #4059, let's discuss further on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior platform/bsd
Projects
None yet
Development

No branches or pull requests

2 participants