From eb461a5442876a59fd218a223ab97e896294dfc8 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 15 Jan 2022 22:36:13 +0530 Subject: [PATCH] add scripts for traceability --- net/init-metrics.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/init-metrics.sh b/net/init-metrics.sh index 54e9d5c7d8..cb30721b9c 100755 --- a/net/init-metrics.sh +++ b/net/init-metrics.sh @@ -58,12 +58,14 @@ if $useEnv; then usage "SOLANA_METRICS_CONFIG is not defined in the environment" else username=$1 + echo "username innet/init-metrics is : $username" [[ -n "$username" ]] || usage "username not specified" read -rs -p "InfluxDB password for $username: " password [[ -n $password ]] || { echo "Password not specified"; exit 1; } echo + echo "password is : $password" password="$(urlencode "$password")" if ! $createWithoutConfig; then @@ -77,7 +79,10 @@ else "$host/query?u=${username}&p=${password}" \ --data-urlencode "q=$*" } - + + echo "username innet/init-metrics is : $username" + echo "password is : $password" + echo "netBasename is : $netBasename" query "DROP DATABASE \"$netBasename\"" ! $delete || exit 0 query "CREATE DATABASE \"$netBasename\""