Skip to content

Instantly share code, notes, and snippets.

@mrtazz
Created March 29, 2013 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtazz/5270999 to your computer and use it in GitHub Desktop.
Save mrtazz/5270999 to your computer and use it in GitHub Desktop.
> echo -n "foo.bar:1|c" | nc -w0 -u 127.0.0.1 8125
> echo -n "foo.lerl:3|g" | nc -w0 -u 127.0.0.1 8125
> echo -n "foo.lol:33|ms" | nc -w0 -u 127.0.0.1 8125
> echo -n "foo.lol:43|ms" | nc -w0 -u 127.0.0.1 8125
> echo -n "foo.lol:53|ms" | nc -w0 -u 127.0.0.1 8125
@logikal
Copy link

logikal commented Mar 29, 2013

If you want to have some non-static data:

echo -n "foo.bar:`echo $((RANDOM%10+0))`|c" | nc -w0 -u 127.0.0.1 8125
echo -n "foo.lerl:`echo $((RANDOM%10+0))`|g" | nc -w0 -u 127.0.0.1 8125
echo -n "foo.lol:`echo $((RANDOM%200+0))`|ms" | nc -w0 -u 127.0.0.1 8125
echo -n "foo.lol:`echo $((RANDOM%100+0))`|ms" | nc -w0 -u 127.0.0.1 8125
echo -n "foo.lol:`echo $((RANDOM%50+0))`|ms" | nc -w0 -u 127.0.0.1 8125

I did this because I wanted to see the histogram bucketing in action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment