Advertisement
Guest User

Untitled

a guest
May 6th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. sudo apt-get update
  2. sudo apt-get install graphite-web graphite-carbon
  3. sudo apt-get install postgresql libpq-dev python-psycopg2
  4.  
  5. ########################
  6. sudo -u postgres psql
  7. CREATE USER graphite WITH PASSWORD 'password';
  8. CREATE DATABASE graphite WITH OWNER graphite;
  9. \q
  10. ########################
  11. sudo vim /etc/graphite/local_settings.py
  12. SECRET_KEY = 'a_salty_string'
  13. TIME_ZONE = 'America/Los Angeles'
  14. USE_REMOTE_USER_AUTHENTICATION = True
  15. DATABASES = {
  16. 'default': {
  17. 'NAME': 'graphite',
  18. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  19. 'USER': 'graphite',
  20. 'PASSWORD': 'password',
  21. 'HOST': '127.0.0.1',
  22. 'PORT': ''
  23. }
  24. }
  25. #######################
  26. sudo graphite-manage syncdb
  27. sudo vim /etc/default/graphite-carbon
  28. CARBON_CACHE_ENABLED=true
  29. #######################
  30. sudo vim /etc/carbon/carbon.conf
  31. ENABLE_LOGROTATION = True
  32. #######################
  33. sudo vim /etc/carbon/storage-schemas.conf
  34. [carbon]
  35. pattern = ^carbon\.
  36. retentions = 60:90d
  37.  
  38. [default_1min_for_1day]
  39. pattern = .*
  40. retentions = 60s:1d
  41. ####################
  42. sudo cp /usr/share/doc/graphite-carbon/examples/storage-aggregation.conf.example /etc/carbon/storage-aggregation.conf
  43. ####################
  44. sudo vim /etc/carbon/storage-aggregation.conf
  45. [min]
  46. pattern = \.min$
  47. xFilesFactor = 0.1
  48. aggregationMethod = min
  49. sudo service carbon-cache start
  50. ###################
  51. sudo apt-get install apache2 libapache2-mod-wsgi
  52. sudo a2dissite 000-default
  53. sudo cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available
  54. sudo a2ensite apache2-graphite
  55. sudo service apache2 reload
  56. ####################
  57. ssh -i mySuperSecretAWSKey.pem ubuntu@2.1.1.1 -L 8080:localhost:80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement