Last active
November 3, 2016 19:59
-
-
Save pior/6910406914380f9ca65174e6a56bb31b to your computer and use it in GitHub Desktop.
How to push metric to StatsD from a shell
This file contains hidden or 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
| # Bash solution | |
| echo -e -n "my.metric:1|c|@1" > /dev/udp/127.0.0.1/8125 | |
| # nc solution | |
| echo "my.metric:1|c" | nc -w 1 -u 127.0.0.1 8125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment