Skip to content

Instantly share code, notes, and snippets.

@pior
Last active November 3, 2016 19:59
Show Gist options
  • Select an option

  • Save pior/6910406914380f9ca65174e6a56bb31b to your computer and use it in GitHub Desktop.

Select an option

Save pior/6910406914380f9ca65174e6a56bb31b to your computer and use it in GitHub Desktop.
How to push metric to StatsD from a shell
# 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