Skip to content

Instantly share code, notes, and snippets.

/- Secret

Created August 14, 2013 16:50
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 anonymous/50be6aa6c77f3c6ef6de to your computer and use it in GitHub Desktop.
Save anonymous/50be6aa6c77f3c6ef6de to your computer and use it in GitHub Desktop.
#!/bin/bash
stage=$1
application=$2
graphite_host=${3:-"statsd"}
port=${4:-"2003"}
echo "stats.$stage.apps.deployments.$application 1 $(date +%s)" | nc -w1 $graphite_host $port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment