Skip to content

type confusion in zfs input module #4059

@grimreaper

Description

@grimreaper

Bug report

Relevant telegraf.conf:

# Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
[[inputs.zfs]]
  ## ZFS kstat path. Ignored on FreeBSD
  ## If not specified, then default is:
  # kstatPath = "/proc/spl/kstat/zfs"

  ## By default, telegraf gather all zfs stats
  ## If not specified, then default is:
  # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]

  ## By default, don't gather zpool stats
  #poolMetrics = true

System info:

∴uname -rms
FreeBSD 12.0-CURRENT amd64
∴telegraf version
Telegraf v1.5.3 (git: unknown unknown)

Steps to reproduce:

  1. Enable [[inputs.zfs]] with default arguments
  2. observe /var/log/telegraf.log
2018-04-22T22:14:00Z E! Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field "arcstats_hash_elements_max" on measurement "zfs" is type float, already exists as type integer dropped=6]
2018-04-22T22:14:30Z E! Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field "arcstats_hash_elements_max" on measurement "zfs" is type float, already exists as type integer dropped=6]
2018-04-22T22:15:00Z E! Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field "arcstats_c_min" on measurement "zfs" is type float, already exists as type integer dropped=6]
2018-04-22T22:15:30Z E! Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field "arcstats_hash_elements_max" on measurement "zfs" is type float, already exists as type integer dropped=6]

Expected behavior:

no error messages in log

Actual behavior:

error messages in log

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions