Skip to content

Instantly share code, notes, and snippets.

@maguec
Created March 16, 2013 17:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save maguec/5177489 to your computer and use it in GitHub Desktop.
Save maguec/5177489 to your computer and use it in GitHub Desktop.
Notes on installation of graphite
sudo apt-get install python-cairo python-memcache python-sqlite memcached python-django-tagging python-django libapache2-mod-python apache2 libapache2-mod-wsgi git-core python-pyparsing python-tz libdbd-mysql-perl libmysqlclient-dev libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5 mysql-common python-mysqldb
mkdir -p /var/tmp/software
cd /var/tmp/software
git clone https://github.com/graphite-project/graphite-web.git
git clone https://github.com/graphite-project/carbon.git
git clone https://github.com/graphite-project/whisper.git
for i in whisper carbon graphite-web; do
cd $i
sudo python setup.py install
cd ..
done
cd /opt/graphite/conf
sudo cp carbon.conf.example carbon.conf
sudo cp storage-schemas.conf.example storage-schemas.conf
sudo cp examples/example-graphite-vhost.conf /etc/apache2/sites-available/graphite
sudo mkdir /etc/httpd/wsgi
chown -R www-data:www-data /etc/httpd
sudo a2enmod wsgi
sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
cd /opt/graphite/webapp/graphite
sudo python manage.py syncdb
sudo chown -R www-data:www-data /opt/graphite/storage/
cd /opt/graphite/
sudo ./bin/carbon-cache.py start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment