Skip to content

Instantly share code, notes, and snippets.

@neutmute
Created June 5, 2012 05:42
Show Gist options
  • Save neutmute/2872910 to your computer and use it in GitHub Desktop.
Save neutmute/2872910 to your computer and use it in GitHub Desktop.
install statsd.h
#!/bin/bash
#Based off https://gist.github.com/2854114
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git
# Get latest pip
sudo pip install --upgrade pip
# statsd
cd /opt && sudo git clone git://github.com/etsy/statsd.git
# StatsD configuration
cat >> /tmp/localConfig.js << EOF
{
graphitePort: 2003
, graphiteHost: "127.0.0.1"
, port: 8125
}
EOF
sudo cp /tmp/localConfig.js /opt/statsd/localConfig.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment