11
by Simon Davy
Add initial statsd and requests support |
1 |
BASE="sas" |
2 |
METRICS="${BASE}-metrics" |
|
3 |
||
4 |
GRAPHITE_PORT=9080 |
|
5 |
STATSD_UDP_PORT=8125 |
|
6 |
||
7 |
||
8 |
case $1 in |
|
9 |
pull)
|
|
10 |
docker pull hopsoft/graphite-statsd |
|
11 |
;;
|
|
12 |
create)
|
|
13 |
docker create --name ${METRICS} -p ${GRAPHITE_PORT}:80 -p ${STATSD_UDP_PORT}:8125/udp hopsoft/graphite-statsd |
|
14 |
;;
|
|
15 |
start)
|
|
16 |
docker start ${METRICS} |
|
17 |
;;
|
|
18 |
stop)
|
|
19 |
docker stop ${METRICS} |
|
20 |
;;
|
|
21 |
clean)
|
|
22 |
docker rm ${METRICS} |
|
23 |
;;
|
|
24 |
esac
|