Permalink
Browse files

Merge branch 'master' of https://github.com/Dieterbe/statsd

  • Loading branch information...
2 parents 96c488d + 514f0ad commit a0aacb4377472a96caadab4320791eb0a6554d15 @mrtazz mrtazz committed Sep 29, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/statsd-client.sh
View
6 examples/statsd-client.sh 100644 → 100755
@@ -5,8 +5,8 @@
#
# Alexander Fortin <alexander.fortin@gmail.com>
#
-STATSD="127.0.0.1"
-PORT="8125"
+host="${STATSD_HOST:-127.0.0.1}"
+port="${STATSD_PORT:-8125}"
if [ $# -ne 1 ]
then
@@ -15,7 +15,7 @@ then
fi
# Setup UDP socket with statsd server
-exec 3<> /dev/udp/${STATSD}/${PORT}
+exec 3<> /dev/udp/$host/$port
# Send data
printf "$1" >&3

0 comments on commit a0aacb4

Please sign in to comment.