Forked from jgeurts/install-graphite-ubuntu-12.04.sh
Last active
October 4, 2020 11:53
-
-
Save kaspergrubbe/5792356 to your computer and use it in GitHub Desktop.
Revisions
-
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal 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 >> /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 # why the heck is this overwriting the local_settings? #################################### # START CARBON -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal 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 -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ cd sudo apt-get update 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 -
kaspergrubbe renamed this gist
Jun 16, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal 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/ -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal 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 ##### # 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 -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal 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 ### Append the following to content of storage-schemas.conf: cat << EOF >> storage-schemas.conf [stats] pattern = ^stats.* retentions = 10s:6h,1min:7d,10min:5y EOF #################################### -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal 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.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 -
kaspergrubbe revised this gist
Jun 16, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal 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 16. June 2013 #################################### cd -
jgeurts revised this gist
Jul 15, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal 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 gedit storage-schemas.conf ### Replace contents of storage-schemas.conf to be the following [stats] priority = 110 -
jgeurts revised this gist
Jul 15, 2012 . 1 changed file with 18 additions and 21 deletions.There are no files selected for viewing
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 charactersOriginal 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 #################################### cd ~/whisper sudo python setup.py install #################################### # INSTALL CARBON #################################### cd ~/carbon 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 ### Replace contents of 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 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 #################################### # 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 #################################### # START CARBON #################################### cd /opt/graphite/ sudo ./bin/carbon-cache.py start -
jgeurts renamed this gist
Jul 14, 2012 . 1 changed file with 41 additions and 36 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,91 +8,96 @@ sudo apt-get update sudo apt-get 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 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 #################################### pushd whisper sudo python setup.py install popd #################################### # INSTALL CARBON #################################### pushd carbon sudo python setup.py install popd # CONFIGURE CARBON #################### 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 ### (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) #################################### pushd graphite sudo python check-dependencies.py sudo python setup.py install # CONFIGURE APACHE ################### 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 mkdir /etc/httpd sudo mkdir /etc/httpd/wsgi sudo /etc/init.d/apache2 reload popd #################################### # INITIAL DATABASE CREATION #################################### 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 #################################### pushd /opt/graphite/ sudo ./bin/carbon-cache.py start popd -
Mike Grace revised this gist
Oct 14, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal 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 #################################### # START CARBON -
Mike Grace revised this gist
Oct 13, 2011 . No changes.There are no files selected for viewing
-
Mike Grace revised this gist
Oct 13, 2011 . 1 changed file with 25 additions and 20 deletions.There are no files selected for viewing
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 charactersOriginal 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/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 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 #################################### # 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 -
Mike Grace revised this gist
Sep 4, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal 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 -
Mike Grace revised this gist
Sep 4, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal 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 -
There are no files selected for viewing
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 charactersOriginal 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