Skip to content

Commit

Permalink
temp fix for Telegraf logs spam about "ground" param error
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Oct 13, 2023
1 parent 7ff97da commit 8de5e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rootfs/etc/s6-overlay/scripts/telegraf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8de5e75

Please sign in to comment.