brew install python --framework
pip install --upgrade distribute
pip install --upgrade pip
$ python --version
Python 2.7.5
$ type python
python is /usr/local/bin/python
$ file /usr/local/bin/python
/usr/local/bin/python: Mach-O 64-bit executable x86_64
$ brew --version
0.9.4
brew install cairo
brew install py2cairo
pip install Django==1.4.5
pip install django-tagging
cd /usr/local/lib/python2.7/site-packages/django/conf/
Generate a secret key Add your secret key to SECRET_KEY in global_settings.py
pip install whisper
pip install carbon
pip install graphite-web
cd /opt/graphite/webapp/graphite
cp local_settings.py.example local_settings.py
- Edit TIME_ZONE to whatever you like
- Edit DEFAULT_CACHE_DURATION if you don’t like the default of 60 sec
- Uncomment the Version 1.2 database settings
- Add your secret key to SECRET_KEY in app_settings.py
cd /opt/graphite/webapp/graphite
sudo python manage.py syncdb
sudo chown -R nobody:nobody /opt/graphite/storage/
cd /opt/graphite/conf
cp storage-schemas.conf.example storage-schemas.conf
cp carbon.conf.example carbon.conf
mkdir /opt/graphite/bin
cd /opt/graphite/bin
ln -s /usr/local/share/python/carbon-cache.py .
ln -s /usr/local/share/python/run-graphite-devel-server.py .
python ./bin/carbon-cache.py --debug start
/opt/graphite/bin/run-graphite-devel-server.py --port 9090 /opt/graphite
http://localhost:9090
If it works correclty you should see a black image with "No Data" in the Graphite Composer. If you see a broken image, it's probably something to do with py2cairo and cairo.