Skip to content

Instantly share code, notes, and snippets.

@fishnix
Created December 5, 2012 23:52
Show Gist options
  • Save fishnix/4220618 to your computer and use it in GitHub Desktop.
Save fishnix/4220618 to your computer and use it in GitHub Desktop.
graphite install centos 6.3 scratch
# python --version
Python 2.6.6
yum install pycairo pycairo-devel Django django-tagging python-zope-interface python-memcached python-twisted fontconfig gnu-free* httpd mod_wsgi
mkdir /usr/local/graphite
cd /usr/local/graphite
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
git clone https://github.com/graphite-project/ceres.git
pushd whisper
sudo python setup.py install
popd
pushd carbon
python setup.py install
popd
pushd ceres
python setup.py install
popd
pushd /opt/graphite/conf
cp carbon.conf.example carbon.conf
cp storage-schemas.conf.example storage-schemas.conf
popd
pushd graphite-web
python check-dependencies.py
python setup.py install
popd
cd /etc/httpd/conf.d/
cp /opt/graphite/examples/example-graphite-vhost.conf ./graphite-vhost.conf
# diff graphite-vhost.conf{.20121205,}
3c3
< # NameVirtualHost *:80
---
> NameVirtualHost *:80
23c23
< ServerName graphite
---
> ServerName logfish.fishnix.org
cd /opt/graphite/webapp/graphite
sudo python manage.py syncdb
chown apache:apache /opt/graphite/storage/graphite.db
cd /opt/graphite/conf/
cp graphite.wsgi.example graphite.wsgi
chown -Rh apache:apache /opt/graphite/storage
cd /opt/graphite/
./bin/carbon-cache.py start
/etc/init.d/httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment