Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kaspergrubbe/5792356 to your computer and use it in GitHub Desktop.

Select an option

Save kaspergrubbe/5792356 to your computer and use it in GitHub Desktop.

Revisions

  1. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-graphite-ubuntu-13.04.sh
    Original file line number Diff line number Diff line change
    @@ -92,7 +92,7 @@ sudo /etc/init.d/apache2 reload
    cd /opt/graphite/webapp/graphite/

    # Setup with sqlite, appending this to the file:
    cat << EOF >> local_settings.py
    cat << EOF >> /opt/graphite/webapp/graphite/local_settings.py
    DATABASES = {
    'default': {
    'NAME': '/opt/graphite/storage/graphite.db',
    @@ -110,7 +110,7 @@ sudo python manage.py syncdb
    sudo chown -R www-data:www-data /opt/graphite/storage/
    sudo /etc/init.d/apache2 restart
    cd /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py
    #sudo cp local_settings.py.example local_settings.py # why the heck is this overwriting the local_settings?

    ####################################
    # START CARBON
  2. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install-graphite-ubuntu-13.04.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,11 @@
    # Last tested & updated 16. June 2013
    ####################################

    # This is apparantly needed for python when running manage.py
    # described here: http://stackoverflow.com/questions/11593556/django-createsuperuser-not-working
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8

    cd
    sudo apt-get update
    sudo apt-get --assume-yes upgrade
  3. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-graphite-ubuntu-13.04.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@

    cd
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get --assume-yes upgrade

    wget https://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz
  4. kaspergrubbe renamed this gist Jun 16, 2013. 1 changed file with 0 additions and 0 deletions.
  5. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -85,6 +85,21 @@ sudo /etc/init.d/apache2 reload
    # INITIAL DATABASE CREATION
    ####################################
    cd /opt/graphite/webapp/graphite/

    # Setup with sqlite, appending this to the file:
    cat << EOF >> local_settings.py
    DATABASES = {
    'default': {
    'NAME': '/opt/graphite/storage/graphite.db',
    'ENGINE': 'django.db.backends.sqlite3',
    'USER': '',
    'PASSWORD': '',
    'HOST': '',
    'PORT': ''
    }
    }
    EOF

    sudo python manage.py syncdb
    # follow prompts to setup django admin user
    sudo chown -R www-data:www-data /opt/graphite/storage/
  6. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,6 @@ sudo python setup.py install
    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf

    ### Append the following to content of storage-schemas.conf:
    cat << EOF >> storage-schemas.conf
    [stats]
    @@ -72,11 +71,12 @@ sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsg
    sudo mkdir /etc/httpd
    sudo mkdir /etc/httpd/wsgi

    sudo gedit /etc/apache2/sites-available/default
    #####
    # in /etc/apache2/sites-available/default
    # Change the line: WSGISocketPrefix run/wsgi
    # To: WSGISocketPrefix /etc/httpd/wsgi
    #####
    sed -i "s/WSGISocketPrefix run\/wsgi/WSGISocketPrefix \/etc\/httpd\/wsgi/g" /etc/apache2/sites-available/default

    sudo /etc/init.d/apache2 reload

  7. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -47,13 +47,13 @@ sudo python setup.py install
    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf
    sudo gedit storage-schemas.conf
    ### Replace contents of storage-schemas.conf to be the following

    ### Append the following to content of storage-schemas.conf:
    cat << EOF >> storage-schemas.conf
    [stats]
    priority = 110
    pattern = .*
    retentions = 10:2160,60:10080,600:262974
    ###
    pattern = ^stats.*
    retentions = 10s:6h,1min:7d,10min:5y
    EOF


    ####################################
  8. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ mv whisper-0.9.10 whisper
    rm graphite-web-0.9.10.tar.gz
    rm carbon-0.9.10.tar.gz
    rm whisper-0.9.10.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 build-essential python3.2 python-dev libpython3.2 python3-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 build-essential python3.3 python-dev libpython3.3 python3-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools
    sudo easy_install django-tagging

    sudo easy_install zope.interface
  9. kaspergrubbe revised this gist Jun 16, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # BASIC REQUIREMENTS
    # http://graphite.wikidot.com/installation
    # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
    # Last tested & updated 10/13/2011
    # Last tested & updated 16. June 2013
    ####################################

    cd
  10. @jgeurts jgeurts revised this gist Jul 15, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ sudo python setup.py install
    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf
    sudo vim storage-schemas.conf
    sudo gedit storage-schemas.conf
    ### Replace contents of storage-schemas.conf to be the following
    [stats]
    priority = 110
  11. @jgeurts jgeurts revised this gist Jul 15, 2012. 1 changed file with 18 additions and 21 deletions.
    39 changes: 18 additions & 21 deletions install-graphite-ubuntu-12.04.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    # Last tested & updated 10/13/2011
    ####################################

    cd
    sudo apt-get update
    sudo apt-get upgrade

    @@ -33,71 +34,67 @@ sudo easy_install txamqp
    # INSTALL WHISPER
    ####################################

    pushd whisper
    cd ~/whisper
    sudo python setup.py install
    popd

    ####################################
    # INSTALL CARBON
    ####################################

    pushd carbon
    cd ~/carbon
    sudo python setup.py install
    popd

    # CONFIGURE CARBON
    ####################
    pushd /opt/graphite/conf
    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf
    sudo vim storage-schemas.conf

    ### (NOT SHELL!) edited storage-schemas.conf to be the following
    ### Replace contents of storage-schemas.conf to be the following
    [stats]
    priority = 110
    pattern = .*
    retentions = 10:2160,60:10080,600:262974
    ###

    popd


    ####################################
    # CONFIGURE GRAPHITE (webapp)
    ####################################

    pushd graphite
    cd ~/graphite
    sudo python check-dependencies.py
    sudo python setup.py install

    # CONFIGURE APACHE
    ###################
    pushd examples
    cd ~/graphite/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
    sudo mkdir /etc/httpd
    sudo mkdir /etc/httpd/wsgi

    sudo gedit /etc/apache2/sites-available/default
    #####
    # Change the line: WSGISocketPrefix run/wsgi
    # To: WSGISocketPrefix /etc/httpd/wsgi
    #####

    sudo /etc/init.d/apache2 reload
    popd


    ####################################
    # INITIAL DATABASE CREATION
    ####################################
    pushd /opt/graphite/webapp/graphite/
    cd /opt/graphite/webapp/graphite/
    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
    popd
    pushd /opt/graphite/webapp/graphite
    cd /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py
    popd

    ####################################
    # START CARBON
    ####################################
    pushd /opt/graphite/
    cd /opt/graphite/
    sudo ./bin/carbon-cache.py start
    popd


  12. @jgeurts jgeurts renamed this gist Jul 14, 2012. 1 changed file with 41 additions and 36 deletions.
    Original file line number Diff line number Diff line change
    @@ -8,91 +8,96 @@
    sudo apt-get update
    sudo apt-get upgrade

    wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
    wget http://launchpad.net/graphite/0.9/0.9.9/+download/carbon-0.9.9.tar.gz
    wget http://launchpad.net/graphite/0.9/0.9.9/+download/whisper-0.9.9.tar.gz
    tar -zxvf graphite-web-0.9.9.tar.gz
    tar -zxvf carbon-0.9.9.tar.gz
    tar -zxvf whisper-0.9.9.tar.gz
    mv graphite-web-0.9.9 graphite
    mv carbon-0.9.9 carbon
    mv whisper-0.9.9 whisper
    rm carbon-0.9.9.tar.gz
    rm graphite-web-0.9.9.tar.gz
    rm whisper-0.9.9.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 python3.1 libpython3.1 python3.1-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz
    wget https://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
    mv graphite-web-0.9.10 graphite
    mv carbon-0.9.10 carbon
    mv whisper-0.9.10 whisper
    rm graphite-web-0.9.10.tar.gz
    rm carbon-0.9.10.tar.gz
    rm whisper-0.9.10.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 build-essential python3.2 python-dev libpython3.2 python3-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools
    sudo easy_install django-tagging

    sudo easy_install zope.interface

    sudo easy_install twisted

    sudo easy_install txamqp

    ####################################
    # INSTALL WHISPER
    ####################################

    cd ~/whisper
    pushd whisper
    sudo python setup.py install
    popd

    ####################################
    # INSTALL CARBON
    ####################################

    cd ~/carbon
    pushd carbon
    sudo python setup.py install
    popd

    # CONFIGURE CARBON
    ####################
    cd /opt/graphite/conf
    pushd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf
    sudo vim storage-schemas.conf
    ### edited storage-schemas.conf to be the following

    ### (NOT SHELL!) edited storage-schemas.conf to be the following
    [stats]
    priority = 110
    pattern = .*
    retentions = 10:2160,60:10080,600:262974
    ###

    popd


    ####################################
    # CONFIGURE GRAPHITE (webapp)
    ####################################

    cd ~/graphite
    pushd graphite
    sudo python check-dependencies.py
    sudo python setup.py install

    # CONFIGURE APACHE
    ###################
    cd ~/graphite/examples
    pushd 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
    sudo vim /etc/apache2/sites-available/default
    # moved 'WSGIImportScript /opt/gr..' to right before virtual host since it gave me an error saying
    # WSGIImportScript cannot occur within <VirtualHost> section
    # if this path does not exist make it!!!!!!
    # /etc/httpd/wsgi
    sudo mkdir /etc/httpd
    sudo mkdir /etc/httpd/wsgi
    sudo /etc/init.d/apache2 reload
    popd

    ####################################
    # INITIAL DATABASE CREATION
    ####################################
    cd /opt/graphite/webapp/graphite/
    sudo cp local_settings.py.example local_settings.py
    pushd /opt/graphite/webapp/graphite/
    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

    popd
    pushd /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py
    popd

    ####################################
    # START CARBON
    ####################################
    cd /opt/graphite/
    pushd /opt/graphite/
    sudo ./bin/carbon-cache.py start
    popd


    ####################################
    # SEND DATA TO GRAPHITE
    ####################################
    cd ~/graphite/examples
    sudo chmod +x example-client.py
    # [optional] edit example-client.py to report data faster
    # sudo vim example-client.py
    sudo ./example-client.py
  13. Mike Grace revised this gist Oct 14, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-graphite-ubuntu-10.04.sh
    Original file line number Diff line number Diff line change
    @@ -75,12 +75,12 @@ sudo /etc/init.d/apache2 reload
    # 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 /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py


    ####################################
    # START CARBON
  14. Mike Grace revised this gist Oct 13, 2011. No changes.
  15. Mike Grace revised this gist Oct 13, 2011. 1 changed file with 25 additions and 20 deletions.
    45 changes: 25 additions & 20 deletions install-graphite-ubuntu-10.04.sh
    Original file line number Diff line number Diff line change
    @@ -2,23 +2,26 @@
    # BASIC REQUIREMENTS
    # http://graphite.wikidot.com/installation
    # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
    # Last tested & updated 10/13/2011
    ####################################

    sudo apt-get update
    sudo apt-get upgrade
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/graphite-web-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/carbon-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz
    tar -zxvf graphite-web-0.9.8.tar.gz
    tar -zxvf carbon-0.9.8.tar.gz
    tar -zxvf whisper-0.9.8.tar.gz
    mv graphite-web-0.9.8 graphite
    mv carbon-0.9.8 carbon
    mv whisper-0.9.8 whisper
    rm carbon-0.9.8.tar.gz
    rm graphite-web-0.9.8.tar.gz
    rm whisper-0.9.8.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 python3.1 libpython3.1 python3.1-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python

    wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
    wget http://launchpad.net/graphite/0.9/0.9.9/+download/carbon-0.9.9.tar.gz
    wget http://launchpad.net/graphite/0.9/0.9.9/+download/whisper-0.9.9.tar.gz
    tar -zxvf graphite-web-0.9.9.tar.gz
    tar -zxvf carbon-0.9.9.tar.gz
    tar -zxvf whisper-0.9.9.tar.gz
    mv graphite-web-0.9.9 graphite
    mv carbon-0.9.9 carbon
    mv whisper-0.9.9 whisper
    rm carbon-0.9.9.tar.gz
    rm graphite-web-0.9.9.tar.gz
    rm whisper-0.9.9.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 python3.1 libpython3.1 python3.1-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools
    sudo easy_install django-tagging

    ####################################
    # INSTALL WHISPER
    @@ -58,8 +61,15 @@ sudo python setup.py install
    ###################
    cd ~/graphite/examples
    sudo cp example-graphite-vhost.conf /etc/apache2/sites-available/default
    sudo /etc/init.d/apache2 reload
    sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
    sudo vim /etc/apache2/sites-available/default
    # moved 'WSGIImportScript /opt/gr..' to right before virtual host since it gave me an error saying
    # WSGIImportScript cannot occur within <VirtualHost> section
    # if this path does not exist make it!!!!!!
    # /etc/httpd/wsgi
    sudo mkdir /etc/httpd
    sudo mkdir /etc/httpd/wsgi
    sudo /etc/init.d/apache2 reload

    ####################################
    # INITIAL DATABASE CREATION
    @@ -72,11 +82,6 @@ sudo /etc/init.d/apache2 restart
    cd /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py

    sudo vim /opt/graphite/webapp/graphite/render/glyph.py
    # at line 598 and add these lines before the "yVariance = ..." line
    if yMaxValue <= yMinValue:
    yMaxValue = yMinValue + 1

    ####################################
    # START CARBON
    ####################################
    @@ -90,4 +95,4 @@ cd ~/graphite/examples
    sudo chmod +x example-client.py
    # [optional] edit example-client.py to report data faster
    # sudo vim example-client.py
    sudo ./example-client.py
    sudo ./example-client.py
  16. Mike Grace revised this gist Sep 4, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install-graphite-ubuntu-10.04.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    ####################################
    # BASIC REQUIREMENTS
    # http://graphite.wikidot.com/installation
    # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
    ####################################

    sudo apt-get update
  17. Mike Grace revised this gist Sep 4, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install-graphite-ubuntu-10.04.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@
    ####################################

    sudo apt-get update
    sudo apt-get upgrade
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/graphite-web-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/carbon-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz
  18. @invalid-email-address Anonymous created this gist Sep 3, 2011.
    91 changes: 91 additions & 0 deletions install-graphite-ubuntu-10.04.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,91 @@
    ####################################
    # BASIC REQUIREMENTS
    # http://graphite.wikidot.com/installation
    ####################################

    sudo apt-get update
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/graphite-web-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/carbon-0.9.8.tar.gz
    wget http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz
    tar -zxvf graphite-web-0.9.8.tar.gz
    tar -zxvf carbon-0.9.8.tar.gz
    tar -zxvf whisper-0.9.8.tar.gz
    mv graphite-web-0.9.8 graphite
    mv carbon-0.9.8 carbon
    mv whisper-0.9.8 whisper
    rm carbon-0.9.8.tar.gz
    rm graphite-web-0.9.8.tar.gz
    rm whisper-0.9.8.tar.gz
    sudo apt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 python3.1 libpython3.1 python3.1-minimal libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python

    ####################################
    # INSTALL WHISPER
    ####################################

    cd ~/whisper
    sudo python setup.py install

    ####################################
    # INSTALL CARBON
    ####################################

    cd ~/carbon
    sudo python setup.py install
    # CONFIGURE CARBON
    ####################
    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sudo cp storage-schemas.conf.example storage-schemas.conf
    sudo vim storage-schemas.conf
    ### edited storage-schemas.conf to be the following
    [stats]
    priority = 110
    pattern = .*
    retentions = 10:2160,60:10080,600:262974
    ###

    ####################################
    # CONFIGURE GRAPHITE (webapp)
    ####################################

    cd ~/graphite
    sudo python check-dependencies.py
    sudo python setup.py install

    # CONFIGURE APACHE
    ###################
    cd ~/graphite/examples
    sudo cp example-graphite-vhost.conf /etc/apache2/sites-available/default
    sudo /etc/init.d/apache2 reload
    sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi

    ####################################
    # INITIAL DATABASE CREATION
    ####################################
    cd /opt/graphite/webapp/graphite/
    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 /opt/graphite/webapp/graphite
    sudo cp local_settings.py.example local_settings.py

    sudo vim /opt/graphite/webapp/graphite/render/glyph.py
    # at line 598 and add these lines before the "yVariance = ..." line
    if yMaxValue <= yMinValue:
    yMaxValue = yMinValue + 1

    ####################################
    # START CARBON
    ####################################
    cd /opt/graphite/
    sudo ./bin/carbon-cache.py start

    ####################################
    # SEND DATA TO GRAPHITE
    ####################################
    cd ~/graphite/examples
    sudo chmod +x example-client.py
    # [optional] edit example-client.py to report data faster
    # sudo vim example-client.py
    sudo ./example-client.py