Add support for local metric collection/viewing (#4170)

This commit is contained in:
Jack May
2019-05-06 16:44:06 -07:00
committed by GitHub
parent 3f6a79b078
commit 453fdb9e28
12 changed files with 8482 additions and 1 deletions

12
metrics/scripts/enable.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
SOLANA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. || exit 1; pwd)"
export SOLANA_METRICS_CONFIG="host=http://localhost:8086,db=local,u=admin,p=admin"
# shellcheck source=scripts/configure-metrics.sh
source "$SOLANA_ROOT"/scripts/configure-metrics.sh
echo Local metrics enabled