Skip to content

Instantly share code, notes, and snippets.

@davecowart
Forked from kkc/graphite.md
Last active August 29, 2015 14:01
Show Gist options
  • Save davecowart/0c054c96e6aaa8dbab7b to your computer and use it in GitHub Desktop.
Save davecowart/0c054c96e6aaa8dbab7b to your computer and use it in GitHub Desktop.

install graphite (http://graphite.wikidot.com) on Amazon Linux AMI. Please fork and fix if you find an error.

Instally pycairo

sudo yum install pycairo-devel

Install pip

sudo yum install python-pip

Install Graphite and Dependencies

sudo pip install 'Twisted<12.0'
sudo pip install carbon
sudo pip install whisper
sudo pip install django==1.5
sudo pip install django-tagging
sudo pip install graphite-web

Create default database

cd /opt/graphite/webapp/graphite
sudo python manage.py syncdb
sudo chown -R nobody:nobody /opt/graphite/storage/

Move example configs

cd /opt/graphite/conf
sudo cp storage-schemas.conf.example storage-schemas.conf
sudo cp carbon.conf.example carbon.conf

Start carbon

cd /opt/graphite/
sudo python ./bin/carbon-cache.py start

Start Graphite

python ./bin/run-graphite-devel-server.py /opt/graphite

Hope like hell it works

http://localhost:8080

If it works correctly 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment