Forked from textarcana/install-graphite-ubuntu-10.04.sh
Created
November 7, 2012 17:27
-
-
Save baileylo/4033075 to your computer and use it in GitHub Desktop.
Install Graphite 0.9.10 on Ubuntu 11.04 http://geek.michaelgrace.org/2011/09/how-to-install-graphite-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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 7/13/2012 | |
#################################### | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install --assume-yes git | |
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 | |
sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 expect ssh libapache2-mod-python python-setuptools | |
## I didn't run this line and everything works fine - Logan | |
???libaprutil1-dbd-sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr | |
sudo easy_install django-tagging | |
# INSTALL WHISPER | |
cd whisper | |
sudo python setup.py install | |
cd - | |
# INSTALL CARBON | |
cd carbon | |
sudo python setup.py install | |
cd - | |
# CONFIGURE CARBON | |
cd /opt/graphite/conf | |
sudo cp carbon.conf.example carbon.conf | |
sudo cp storage-schemas.conf.example storage-schemas.conf | |
sudo emacs storage-schemas.conf | |
### edited storage-schemas.conf to be the following | |
[stats] | |
priority = 110 | |
pattern = .* | |
retentions = 10:2160,60:10080,600:262974 | |
### | |
cd - | |
# INSTALL CERES | |
# I moved ceres installation before check-dependencies - Logan | |
cd ceres | |
sudo python setup.py install | |
cd - | |
# CONFIGURE GRAPHITE (webapp) | |
cd graphite-web | |
sudo python check-dependencies.py | |
sudo python setup.py install | |
cd - | |
# CONFIGURE APACHE | |
cd graphite-web/examples | |
sudo cp example-graphite-vhost.conf /etc/apache2/sites-available/default | |
sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi | |
# I didn't actually change anything her e- Logan | |
sudo emacs /etc/apache2/sites-available/default | |
# if this path does not exist, create it. | |
# /etc/apache2/run/wsgi | |
# This path didn't exist for me - Logan | |
sudo mkdir -p /etc/apache2/run/wsgi | |
# | |
# django will be in /var/lib/python-support/python2.7/django/ | |
sudo /etc/init.d/apache2 reload | |
cd - | |
#################################### | |
# INITIAL DATABASE CREATION | |
#################################### | |
cd /opt/graphite/webapp/graphite/ | |
sudo cp local_settings.py.example local_settings.py | |
sudo python manage.py syncdb | |
# follow prompts to setup django admin user | |
sudo chown -R www-data:www-data /opt/graphite/storage/ | |
sudo /etc/init.d/apache2 restart | |
cd - | |
#################################### | |
# START CARBON | |
#################################### | |
cd /opt/graphite/ | |
sudo ./bin/carbon-cache.py start | |
cd - | |
#################################### | |
# SEND DATA TO GRAPHITE | |
#################################### | |
cd graphite-web/examples | |
sudo chmod +x example-client.py | |
# [optional] edit example-client.py to report data faster | |
# sudo emacs example-client.py | |
sudo ./example-client.py | |
cd - | |
# Load web server here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment