I highly recommend using virtualenv for this.
mkdir statsd
virtualenv env
env/bin/activate
Most of these steps are taken from this gist and were adapted to work with virtualenv
.
brew install cairo
brew install py2cairo
pip install Django==1.5
pip install django-tagging
pip install carbon
pip install whisper
pip install graphite-web
pip install Twisted==11.1.0
sudo chown -R `whoami`:staff /opt/graphite
cp /opt/graphite/conf/carbon.conf{.example,}
cp /opt/graphite/conf/storage-schemas.conf{.example,}
cd /opt/graphite/webapp/graphite
# Modify this file to change database backend (default is sqlite).
cp local_settings.py{.example,}
# Initialize database
python manage.py syncdb
python /opt/graphite/bin/carbon-cache.py start
python /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite
Go to:
http://localhost:8080/render
If you see something like ImportError: Could not find Cairo
, please follow these instructions to fix it.
brew install node
git clone https://github.com/etsy/statsd.git
cd statsd
cp exampleConfig.js config.js # edit config.js accordingly.
node stats.js config.js