Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 2.92 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # install git
  2. sudo apt-get install g++ curl libssl-dev apache2-utils
  3. sudo apt-get install git-core
  4. # download the Node source, compile and install it
  5. git clone https://github.com/joyent/node.git
  6. cd node
  7. ./configure
  8. make
  9. sudo make install
  10. # install the Node package manager for later use
  11. curl http://npmjs.org/install.sh | sudo sh
  12. sudo npm install express
  13. # clone the statsd project
  14. git clone https://github.com/etsy/statsd.git
  15. # download everything for graphite
  16. mkdir graphite
  17. cd graphite/
  18. wget "http://launchpad.net/graphite/trunk/0.9.6/+download/carbon-0.9.6.tar.gz"
  19. wget "http://launchpad.net/graphite/trunk/0.9.6/+download/whisper-0.9.6.tar.gz"
  20. wget "http://launchpad.net/graphite/trunk/0.9.6/+download/graphite-web-0.9.6.tar.gz"
  21. tar xzvf whisper-0.9.6.tar.gz
  22. tar xzvf carbon-0.9.6.tar.gz
  23. tar xzvf graphite-web-0.9.6.tar.gz
  24. # install whisper - Graphite's DB system
  25. cd whisper-0.9.6
  26. sudo python setup.py install
  27. popd
  28. # install carbon - the Graphite back-end
  29. cd carbon-0.9.6
  30. sudo python setup.py install
  31. cd /opt/graphite/conf
  32. cp carbon.conf.example carbon.conf
  33. # copy the example schema configuration file, and then configure the schema
  34. # see: http://graphite.wikidot.com/getting-your-data-into-graphite
  35. cp storage-schemas.conf.example storage-schemas.conf
  36. # install other graphite dependencies
  37. sudo apt-get install python-cairo
  38. sudo apt-get install python-django
  39. sudo apt-get install memcached
  40. sudo apt-get install python-memcache
  41. sudo apt-get install python-ldap
  42. sudo apt-get install python-twisted
  43. sudo apt-get install apache2 libapache2-mod-python libapache2-mod-wsgi
  44. cd ~/graphite/graphite-web-0.9.6
  45. python setup.py install
  46. # copy the graphite vhost example to available sites, edit it to you satisfaction, then link it from sites-enabled
  47. sudo cp example-graphite-vhost.conf /etc/apache2/sites-available/graphite
  48. cd /opt/graphite/conf
  49. sudo cp graphite.wsgi.example graphite.wsgi
  50. # Update this file if you installed the graphite webapp somewhere custom
  51. sudo a2ensite graphite
  52. apache2ctl restart
  53. # I had to create these log files manually
  54. /opt/graphite/storage/log/webapp
  55. touch info.log
  56. chmod 777 info.log
  57. touch exception.log
  58. chmod 777 exception.log
  59. # make sure to change ownership of the storage folder to the Apache user/group - mine was www-data
  60. sudo chown -R www-data:www-data /opt/graphite/storage/
  61. cd /opt/graphite/webapp/graphite
  62. # copy the local_settings example file to creating the app's settings
  63. # this is where both carbon federation and authentication is configured
  64. sudo cp local_settings.py.example local_settings.py
  65. # run syncdb to setup the db and prime the authentication model (if you're using the DB model)
  66. sudo python manage.py syncdb
  67. # start the carbon cache
  68. sudo /opt/graphite/bin/carbon-cache.py start
  69. # copy the the statsd config example to create the config file
  70. # unless you used non-default ports for some other feature of the system, the defaults in the config file are fine
  71. cd ~/statsd
  72. cp exampleConfig.js local.js
  73. # start statsd
  74. node stats.js local.js