Skip to content

feat(inputs.zfs): Add kstats available in ZFS 2.3 - #20076

Open
omgold wants to merge 1 commit into
influxdata:masterfrom
omgold:zfs-2.3
Open

omgold wants to merge 1 commit into
influxdata:masterfrom
omgold:zfs-2.3

Conversation

@omgold

@omgold omgold commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Collect the brtstats, dbufstats, metaslab_stats, zio_stats and zstd kstats by default. Current ZFS versions provide dbufstats instead of the dbufcachestats kstat, which means no dbuf metrics were collected on those.

With poolMetrics enabled, additionally report the pool-wide iostats kstat as zfs_pool metric without a dataset tag. Those are also available for pools without any dataset kstat, so such pools are now part of the pools tag as well.

Summary

Update the zfs input to allow collection of all statistics provided by ZFS >= 2.3.

Checklist

Related issues

resolves #20075

Collect the brtstats, dbufstats, metaslab_stats, zio_stats and zstd kstats
by default. Current ZFS versions provide dbufstats instead of the
dbufcachestats kstat, which means no dbuf metrics were collected on those.

With poolMetrics enabled, additionally report the pool-wide iostats kstat
as zfs_pool metric without a dataset tag. Those are also available for
pools without any dataset kstat, so such pools are now part of the pools
tag as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@telegraf-tiger telegraf-tiger Bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Nov 4, 2026
@telegraf-tiger

telegraf-tiger Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip.
Downloads for additional architectures and packages are available below.

⚠️ This pull request increases the Telegraf binary size by 6.82 % for linux amd64 (new size: 329.3 MB, nightly size 308.2 MB)

📦 Click here to get additional PR build artifacts

Artifact URLs

. DEB . RPM . TAR . GZ . ZIP
amd64.deb aarch64.rpm darwin_amd64.tar.gz windows_amd64.zip
arm64.deb armel.rpm darwin_arm64.tar.gz windows_arm64.zip
armel.deb armv6hl.rpm freebsd_amd64.tar.gz windows_i386.zip
armhf.deb i386.rpm freebsd_armv7.tar.gz
i386.deb ppc64le.rpm freebsd_i386.tar.gz
mips.deb riscv64.rpm linux_amd64.tar.gz
mipsel.deb s390x.rpm linux_arm64.tar.gz
ppc64el.deb x86_64.rpm linux_armel.tar.gz
riscv64.deb linux_armhf.tar.gz
s390x.deb linux_i386.tar.gz
linux_mips.tar.gz
linux_mipsel.tar.gz
linux_ppc64le.tar.gz
linux_riscv64.tar.gz
linux_s390x.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inputs.zfs: support new stat files of recent ZFS (>=2.3)

1 participant