Skip to content

Instantly share code, notes, and snippets.

@pkhamre
Created July 3, 2012 08:21
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pkhamre/3038445 to your computer and use it in GitHub Desktop.
Save pkhamre/3038445 to your computer and use it in GitHub Desktop.
Installing graphite 0.9.10 on Amazon Linux

Installing required packages

sudo yum groupinstall "Development tools"
sudo yum install python-devel.noarch
sudo yum install pycairo.x86_64 Django.noarch django-tagging.noarch  python-twisted.noarch python-zope-interface.x86_64
sudo yum install fontconfig.x86_64 fontconfig-devel.x86_64
sudo yum install mod_wsgi.x86_64
sudo yum install python-pip.noarch

sudo pip-python install whisper
sudo pip-python install carbon
sudo pip-python install graphite-web

sudo chkconfig httpd on

Configuration

sudo cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
sudo cp /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
sudo cp /opt/graphite/examples/example-graphite-vhost.conf /etc/httpd/conf.d/graphite.conf
sudo cp /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py

Set up initial database without creating a superuser

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

Create a superuser

sudo python /opt/graphite/webapp/graphite/manage.py createsuperuser stats

Start apache and carbon

sudo /opt/graphite/bin/carbon-cache.py start
sudo /etc/init.d/httpd start
@lindsayleeds
Copy link

Have you noticed the pip package was bundled last May and does not have all the subsequent fixes that have been made to v0.9.10? I really wish a newer pip package would be issued.

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