From f09183765c97f951c7a184260a6ce94d7f49796c Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 1 Oct 2019 09:17:29 -0700 Subject: [PATCH] Output timestamp to console for better logs --- scripts/metrics-write-datapoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/metrics-write-datapoint.sh b/scripts/metrics-write-datapoint.sh index 8954ec0490..9fc92d39a1 100755 --- a/scripts/metrics-write-datapoint.sh +++ b/scripts/metrics-write-datapoint.sh @@ -9,7 +9,7 @@ if [[ -z $point ]]; then exit 1 fi -echo "Influx data point: $point" +echo "[$(date --iso-8601=seconds)] Influx data point: $point" if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then echo Influx user credentials not found exit 0