Minor script refactoring/refinement

This commit is contained in:
Michael Vines
2019-06-13 08:28:31 -07:00
parent fc34687687
commit efe676bc94
4 changed files with 19 additions and 16 deletions

6
metrics/scripts/enable.sh Executable file → Normal file
View File

@ -1,10 +1,8 @@
#!/usr/bin/env bash
SOLANA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. || exit 1; pwd)"
# |source| this file to enable metrics in the current shell
export SOLANA_METRICS_CONFIG="host=http://localhost:8086,db=testnet,u=write,p=write"
# shellcheck source=scripts/configure-metrics.sh
source "$SOLANA_ROOT"/scripts/configure-metrics.sh
source "$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. || exit 1; pwd)"/scripts/configure-metrics.sh
echo Local metrics enabled