Commit Graph

3 Commits (f898d65983c9af4c5bb3ccd8f1dbdd27617646a4)

Author SHA1 Message Date
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