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

[inputs.zfs] poolMetrics and datasetMetrics #16285

Open
MWP opened this issue Dec 10, 2024 · 0 comments
Open

[inputs.zfs] poolMetrics and datasetMetrics #16285

MWP opened this issue Dec 10, 2024 · 0 comments
Labels
bug unexpected problem or unintended behavior

Comments

@MWP
Copy link

MWP commented Dec 10, 2024

Relevant telegraf.conf

[[inputs.zfs]]
  name_override="system_zfs" 
  interval = "30s"
  kstatPath = "/proc/spl/kstat/zfs"
  kstatMetrics = [""]
  poolMetrics = true
  datasetMetrics = false

and

[[inputs.zfs]]
  name_override="system_zfs" 
  interval = "30s"
  kstatPath = "/proc/spl/kstat/zfs"
  kstatMetrics = [""]
  poolMetrics = false
  datasetMetrics = true

Logs from Telegraf

With "poolMetrics = true" and "datasetMetrics = false":

2024-12-09T23:55:06Z I! Loading config: zfs.conf
2024-12-09T23:55:06Z I! Starting Telegraf 1.33.0 brought to you by InfluxData the makers of InfluxDB
2024-12-09T23:55:06Z I! Available plugins: 236 inputs, 9 aggregators, 33 processors, 26 parsers, 63 outputs, 6 secret-stores
2024-12-09T23:55:06Z I! Loaded inputs: zfs
2024-12-09T23:55:06Z I! Loaded aggregators:
2024-12-09T23:55:06Z I! Loaded processors:
2024-12-09T23:55:06Z I! Loaded secretstores:
2024-12-09T23:55:06Z W! Outputs are not used in testing mode!
2024-12-09T23:55:06Z I! Tags enabled: host=linux
> system_zfs,dataset=poolz1/vbox-vms,host=linux,pool=poolz1 nread=0i,nunlinked=0i,nunlinks=0i,nwritten=0i,reads=0i,writes=0i 1733788507000000000
> system_zfs,dataset=poolz1/docker,host=linux,pool=poolz1 nread=518799133i,nunlinked=797i,nunlinks=797i,nwritten=811043663i,reads=151960i,writes=28495i 1733788507000000000
> system_zfs,dataset=poolz1/media,host=linux,pool=poolz1 nread=1320978207i,nunlinked=0i,nunlinks=0i,nwritten=0i,reads=20212i,writes=0i 1733788507000000000
> system_zfs,dataset=poolz1/home,host=linux,pool=poolz1 nread=2034819399i,nunlinked=1128i,nunlinks=1128i,nwritten=788413626i,reads=121563i,writes=6157i 1733788507000000000

With "poolMetrics = false" and "datasetMetrics = true":

2024-12-09T23:56:12Z I! Loading config: zfs.conf
2024-12-09T23:56:12Z I! Starting Telegraf 1.33.0 brought to you by InfluxData the makers of InfluxDB
2024-12-09T23:56:12Z I! Available plugins: 236 inputs, 9 aggregators, 33 processors, 26 parsers, 63 outputs, 6 secret-stores
2024-12-09T23:56:12Z I! Loaded inputs: zfs
2024-12-09T23:56:12Z I! Loaded aggregators:
2024-12-09T23:56:12Z I! Loaded processors:
2024-12-09T23:56:12Z I! Loaded secretstores:
2024-12-09T23:56:12Z W! Outputs are not used in testing mode!
2024-12-09T23:56:12Z I! Tags enabled: host=linux
.... and nothing else

System info

Debian 12 x64 with Telegraf v1.33.0 deb pkg

Docker

No response

Steps to reproduce

Use the given config on a Linux x64 equipped machine

Expected behavior

"poolMetrics = true" and "datasetMetrics = false" i would expect output simiar to that when the "zpool iostat -vl" command is run.

"poolMetrics = false" and "datasetMetrics = true" i would expect datasetMetrics output.

Actual behavior

"poolMetrics = true" and "datasetMetrics = false" gives datasetMetrics instead.

"poolMetrics = false" and "datasetMetrics = true" gives nothing.

Additional info

No response

@MWP MWP added the bug unexpected problem or unintended behavior label Dec 10, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant