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

View File

@ -1,8 +1,9 @@
#!/bin/bash -e
#!/usr/bin/env bash
#
# Checks the status of lcoal metrics
# Checks the status of local metrics
#
set -e
cd "$(dirname "$0")"
(
@ -20,8 +21,12 @@ if ! timeout 10s curl -v --head http://localhost:3000; then
exit 1
fi
echo Local metrics up and running
echo - Enable local metric collection per shell by running \'source ./enable.sh\'
echo - View dashboard at http://localhost:3000/d/local/local-monitor
exit 0
cat <<EOF
=========================================================================
* Grafana dashboards are available at http://localhost:3000/dashboards
* Enable local metric collection per shell by running the command:
source $PWD/enable.sh
EOF