wget -qO- https://dl.packager.io/srv/pkgr/statsd/key | sudo apt-key add - sudo wget -O /etc/apt/sources.list.d/statsd.list \ https://dl.packager.io/srv/pkgr/statsd/pkgr/installer/ubuntu/12.04.repo sudo apt-get update sudo apt-get install statsd
Note: You might need to
apt-get install wget apt-transport-https for the above instructions to work.
The package will automatically install and launch the statsd process on
localhost:8125. The configuration file can be edited in
Do not forget to restart the service after an upgrade, or after you changed the configuration:
sudo service statsd restart
You can look at the logs by doing:
sudo statsd logs [--tail]
If you need to install additional NPM modules (for custom backends for instance), you can do so with:
sudo statsd run npm install [NAME]
Or you can also drop files into the
/opt/statsd/backends folder. Any additional file there will be kept even when upgrading.