Skip to content

Commit a1e3fef

Browse files
committed
fix(telegraf) ensure off-cluster influxdb url is quoted
1 parent 2e62180 commit a1e3fef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

telegraf/rootfs/start-telegraf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if [ -n "$ENABLE_PROMETHEUS" ]; then
2929
echo "Setting PROMETHEUS_URLS: $PROMETHEUS_URLS"
3030
fi
3131

32+
# if the influxdb url does not start with a quote, assume it's singular and quote it
33+
if [ ${INFLUXDB_URLS:0:1} != "\"" ]; then
34+
export INFLUXDB_URLS="\"$INFLUXDB_URLS\""
35+
fi
36+
3237
echo "Building config.toml!"
3338
envtpl -in config.toml.tpl | sed '/^$/d' > config.toml
3439

0 commit comments

Comments
 (0)