Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Created September 10, 2017 08:29
Show Gist options
  • Save katzefudder/f8ec2cc68142c45cfa5ff15b229b05b5 to your computer and use it in GitHub Desktop.
Save katzefudder/f8ec2cc68142c45cfa5ff15b229b05b5 to your computer and use it in GitHub Desktop.
send to statsd
#!/bin/bash
HOST=sub.host.domain
PORT=8125
METHOD=$1
KEY=$2
VALUE=$3
echo "$KEY:$VALUE|$METHOD"|nc -u -w 1 $HOST $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment