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.
pull/753/head
Prathamesh Musale 2026-05-11 10:45:49 +00:00
parent c79da27585
commit f5adcfc77e
1 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
# host-metrics telegraf template. # host-metrics telegraf template.
# Rendered at container start by telegraf-entrypoint.sh: # Rendered at container start by telegraf-entrypoint.sh. The entrypoint
# - @@HOST_TAG_BLOCK@@ -> [global_tags] host = "<HOST_TAG>" if HOST_TAG set, # replaces two single-line markers in this file with TOML block fragments;
# empty if unset (telegraf auto-tags with kernel hostname). # see telegraf-entrypoint.sh for the substitution details. All ${...}
# - @@ZFS_BLOCK@@ -> [[inputs.zfs]] block if COLLECT_ZFS=true, else empty. # variables are resolved by telegraf's native env substitution at
# All ${...} variables are resolved by telegraf's native env substitution at
# config-load time. # config-load time.
@@HOST_TAG_BLOCK@@ @@HOST_TAG_BLOCK@@