Skip to content

Instantly share code, notes, and snippets.

@tristanbes
Created October 19, 2012 13:46
Show Gist options
  • Save tristanbes/3918310 to your computer and use it in GitHub Desktop.
Save tristanbes/3918310 to your computer and use it in GitHub Desktop.
Install Stats.d on a debian server
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
# Don't forget to go to the location you want to install node in (like cd /home/) before running these commands
git clone https://github.com/joyent/node.git
cd node
git checkout v0.8.12
./configure --openssl-libpath=/usr/lib/ssl
make
make test
sudo make install
node -v
npm -v
cd ..
git clone https://github.com/etsy/statsd
cd statsd
cp exampleConfig.js local.js
# Edit local.js and make it looks like:
{
graphitePort: 2003
, graphiteHost: "localhost"
, port: 8125
}
# Then you need to run stats.d
apt-get install screen
screen node stats.js local.js
# Then press Ctrl + a + d in order to let run stats.js in background mode thanks to screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment