Created
November 29, 2012 15:52
-
-
Save bmuller/4169950 to your computer and use it in GitHub Desktop.
Graphite setup on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /usr/src | |
| wget http://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.9.tar.gz | |
| wget http://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz | |
| wget http://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz | |
| tar -zxvf graphite-web-0.9.10.tar.gz | |
| tar -zxvf carbon-0.9.10.tar.gz | |
| tar -zxvf whisper-0.9.10.tar.gz | |
| apt-get install apache2 apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 python3.2 libpython3.2 python3.2-minimal libapache2-mod-wsgi | |
| apt-get install libaprutil1-ldap python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 libapache2-mod-python python-setuptools | |
| sudo easy_install django-tagging | |
| cd whisper-0.9.10 | |
| python setup.py install | |
| cd carbon-0.9.10 | |
| python setup.py install | |
| cd /opt/graphite/conf | |
| cp carbon.conf.example carbon.conf | |
| cp storage-schemas.conf.example storage-schemas.conf | |
| emacs storage-schemas.conf - remove the last example, add | |
| ### | |
| [stats] | |
| pattern = .* | |
| retentions = 10s:1d,1m:7d,10m:30d,15m:1y,1h:2y | |
| ### | |
| cd /usr/src/graphite-web-0.9.10 | |
| python check-dependencies.py | |
| python setup.py install | |
| cd examples | |
| cp example-graphite-vhost.conf /etc/apache2/sites-available/default | |
| emacs /etc/apache2/sites-available/default | |
| ## - under default server | |
| <Location "/"> | |
| AuthName "Graphite Access" | |
| AuthType Basic | |
| AuthUserFile /etc/nagios3/htpasswd.users | |
| require valid-user | |
| </Location> | |
| ## | |
| cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi | |
| emacs /etc/apache2/sites-available/default | |
| cd /opt/graphite/webapp/graphite/ | |
| cp local_settings.py.example local_settings.py | |
| python manage.py syncdb | |
| chown -R www-data:www-data /opt/graphite/storage/ | |
| mkdir /etc/apache2/run | |
| /etc/init.d/apache2 restart | |
| cd /opt/graphite/ | |
| ./bin/carbon-cache.py start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment