host-metrics: drop wrong mount_points filter, broaden net interfaces

`mount_points = ["/hostfs"]` filtered for a literal /hostfs mountpoint
that never exists in /proc/mounts: gopsutil with HOST_MOUNT_PREFIX
strips that prefix and reports real host paths (/, /boot, /home).
The filter matched zero, so no `disk` rows were emitted at all.

`interfaces = [..., "wlan*"]` missed modern wireless naming (wlp*,
wlx*). Replace with broader globs (`eth*`, `en*`, `wl*`, `wwan*`,
`bond*`) that match all physical/bonded interfaces while still
excluding docker bridges, veth pairs, lo, and tun/tap.
pull/753/head
Prathamesh Musale 2026-05-11 12:29:33 +00:00
parent f1b2060164
commit daf1065534
1 changed files with 9 additions and 2 deletions

View File

@ -42,10 +42,13 @@
[[inputs.processes]] [[inputs.processes]]
[[inputs.disk]] [[inputs.disk]]
# gopsutil with HOST_MOUNT_PREFIX=/hostfs strips the /hostfs prefix
# from /proc/mounts entries, so the mountpoints telegraf sees are
# the host's real paths (/, /boot, /home, ...). No mount_points
# filter; let ignore_fs do the noise reduction.
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay",
"aufs", "squashfs", "nsfs", "tracefs", "proc", "sysfs", "aufs", "squashfs", "nsfs", "tracefs", "proc", "sysfs",
"cgroup", "cgroup2", "fuse.lxcfs"] "cgroup", "cgroup2", "fuse.lxcfs"]
mount_points = ["/hostfs"]
[[inputs.diskio]] [[inputs.diskio]]
device_tags = ["DEVNAME"] device_tags = ["DEVNAME"]
@ -53,7 +56,11 @@
name_templates = ["$DEVNAME"] name_templates = ["$DEVNAME"]
[[inputs.net]] [[inputs.net]]
# Allowlist covers physical ethernet (eth*, en*), wireless (wl*),
# cellular (wwan*), and bonded/teamed interfaces (bond*). Excludes
# docker bridges, veth pairs, tun/tap, and lo. Adjust per host if
# you need a more specific scope.
ignore_protocol_stats = true ignore_protocol_stats = true
interfaces = ["eth*", "en*", "ens*", "eno*", "enp*", "wlan*"] interfaces = ["eth*", "en*", "wl*", "wwan*", "bond*"]
@@ZFS_BLOCK@@ @@ZFS_BLOCK@@