From 8de5e75e227baddce506a4b16c1ff0d3690c18d4 Mon Sep 17 00:00:00 2001 From: kx1t Date: Fri, 13 Oct 2023 11:03:52 -0400 Subject: [PATCH] temp fix for Telegraf logs spam about "ground" param error --- rootfs/etc/s6-overlay/scripts/telegraf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/telegraf b/rootfs/etc/s6-overlay/scripts/telegraf index b67718d..087aeb1 100755 --- a/rootfs/etc/s6-overlay/scripts/telegraf +++ b/rootfs/etc/s6-overlay/scripts/telegraf @@ -18,7 +18,10 @@ if [[ -n "$INFLUXDBV2_URL" ]] || chk_enabled "${PROMETHEUS_ENABLE}"; then sleep 5 & wait $! done # start telegraf - exec s6wrap --quiet --prepend=telegraf --timestamps --args telegraf --config-directory /etc/telegraf/telegraf.d + # ATTN: next line is temporary until @ngen15 resolves issues with the "ground" parameter in telegraf. + # once resolved, we can revert to the original line, which was: + # s6wrap --quiet --prepend=telegraf --timestamps --args telegraf --config-directory /etc/telegraf/telegraf.d + s6wrap --quiet --prepend=telegraf --timestamps --args telegraf --config-directory /etc/telegraf/telegraf.d | grep -v "error converting to float" else # if telegraf not needed, sleep forever exec sleep infinity