Commit Graph

4 Commits (daf10655341657cc400488da34f230771b5c84dd)

Author SHA1 Message Date
Prathamesh Musale daf1065534 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.
2026-05-11 12:29:33 +00:00
Prathamesh Musale f898d65983 host-metrics: entrypoint + offline tests
Add telegraf-entrypoint.sh to render telegraf.conf from the template
(replacing @@HOST_TAG_BLOCK@@ and @@ZFS_BLOCK@@ markers via awk) and
exec telegraf. Add test-telegraf-entrypoint.sh with 8 offline tests
(10 assertions) covering marker substitution and required-env validation.
Fix run() stderr redirect from >/dev/null 2>&1 to >/dev/null so that
entrypoint error output reaches the T6-T8 assertion captures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 10:50:13 +00:00
Prathamesh Musale f5adcfc77e host-metrics: remove marker mentions from template comments
The entrypoint substitutes @@HOST_TAG_BLOCK@@ and @@ZFS_BLOCK@@ globally;
having them inside leading comments would corrupt the rendered file.
2026-05-11 10:45:49 +00:00
Prathamesh Musale c79da27585 host-metrics: telegraf config template
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 10:44:58 +00:00