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

20
metrics/scripts/stop.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash -e
#
# Stops local metrics
#
cd "$(dirname "$0")"
for container in influxdb grafana; do
if [ "$(docker ps -q -f name=$container)" ]; then
(
set +e
docker kill $container
docker rm $container
exit 0
)
fi
done
echo Local metrics stopped
exit 0