https://github.com/gingerlime/graphite-fabric
Fabric file to install all the graphite and statsd
TODO:
- edit /opt/statsd/local.js
- correct the graphite host to localhost
- if desired, put 'debug: true' in there
- make the box accessible via the hostname 'graphite'
- update conf/storage-schemas.conf, see example for these retention rules: 6 hours of 10 second data 1 week of 1 minute data 5 years of 10 minute data
Faced with issues:
rm /etc/apache2/sites-enabled/000-default
edit /etc/apache2/sites-enabled/graphite.conf
replace WSGISocketPrefix run/wsgi with following line
WSGISocketPrefix /var/run/apache2/wsgi
use the forever script to run the statsd or better one pm2 ?
npm install forever -g
cd /opt/statsd forever start stats.js local.js