Created
January 9, 2014 20:21
-
-
Save vitalbh/8341254 to your computer and use it in GitHub Desktop.
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
# Send a metric to statsd from bash | |
# | |
# Useful for: | |
# deploy scripts (http://codeascraft.etsy.com/2010/12/08/track-every-release/) | |
# init scripts | |
# sending metrics via crontab one-liners | |
# sprinkling in existing bash scripts. | |
# | |
# netcat options: | |
# -w timeout If a connection and stdin are idle for more than timeout seconds, then the connection is silently closed. | |
# -u Use UDP instead of the default option of TCP. | |
# | |
echo "deploys.test.myservice:1|c" | nc -w 1 -u graphite.example.com 8125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment