forked from statsd/statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Fortin
committed
Jun 26, 2012
1 parent
5095868
commit d00be7a
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
# | ||
# Very simple bash client to send gauge metrics to a statsd client | ||
# Example: ./statsd-client.sh 'my_metric:100' | ||
# Very simple bash client to send metrics to a statsd server | ||
# Example with gauge: ./statsd-client.sh 'my_metric:100|g' | ||
# | ||
# Alexander Fortin <[email protected]> | ||
# | ||
|
@@ -18,7 +18,7 @@ fi | |
exec 3<> /dev/udp/${STATSD}/${PORT} | ||
|
||
# Send data | ||
echo "$1|g" >&3 | ||
echo "$1" >&3 | ||
|
||
# Close UDP socket | ||
exec 3<&- | ||
|