sudo pip install Django==1.8 graphite-web carbon
brew install cairo
sudo pip install -r https://raw.githubusercontent.com/graphite-project/graphite-web/master/requirements.txt
cd /opt/graphite
sudo chown -R [YOUR_USERNAME] storage
- Edit
webapp/graphite/settings.py
: SetSECRET_KEY
to a random string.
PYTHONPATH=/opt/graphite/webapp django-admin.py syncdb --settings=graphite.settings
sudo cp conf/carbon.conf.example conf/carbon.conf
sudo cp conf/storage-schemas.conf.example conf/storage-schemas.conf
sudo cp webapp/graphite/local_settings.py.example webapp/graphite/local_settings.py
- Edit
conf/carbon.conf
: SetWHISPER_FALLOCATE_CREATE
toFalse
bin/carbon-cache.py start
bin/run-graphite-devel-server.py /opt/graphite
brew install node
git clone https://github.com/etsy/statsd.git
cd statsd
cp exampleConfig.js config.js
- Edit
config.js
: ChangegraphiteHost
tolocalhost
. - Optionally add debug options shown below.
Your config.js
should look similar to this:
{
graphitePort: 2003
, graphiteHost: "localhost"
, port: 8125
, backends: [ "./backends/graphite" ]
, debug: true
, dumpMessages: true
}
Now you can run the statsd server:
node stats.js config.js
I was following along this tutorial, but when setting python path by using
PYTHONPATH=/opt/graphite/webapp django-admin.py syncdb --settings=graphite.settings
gives me following error