From daf10655341657cc400488da34f230771b5c84dd Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 11 May 2026 12:29:33 +0000 Subject: [PATCH] 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. --- .../data/config/host-metrics/telegraf.conf.tpl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/stack_orchestrator/data/config/host-metrics/telegraf.conf.tpl b/stack_orchestrator/data/config/host-metrics/telegraf.conf.tpl index 94bf973b..8ab56bdf 100644 --- a/stack_orchestrator/data/config/host-metrics/telegraf.conf.tpl +++ b/stack_orchestrator/data/config/host-metrics/telegraf.conf.tpl @@ -42,10 +42,13 @@ [[inputs.processes]] [[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", "aufs", "squashfs", "nsfs", "tracefs", "proc", "sysfs", "cgroup", "cgroup2", "fuse.lxcfs"] - mount_points = ["/hostfs"] [[inputs.diskio]] device_tags = ["DEVNAME"] @@ -53,7 +56,11 @@ name_templates = ["$DEVNAME"] [[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 - interfaces = ["eth*", "en*", "ens*", "eno*", "enp*", "wlan*"] + interfaces = ["eth*", "en*", "wl*", "wwan*", "bond*"] @@ZFS_BLOCK@@