Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get update
- sudo apt-get install graphite-web graphite-carbon
- sudo apt-get install postgresql libpq-dev python-psycopg2
- ########################
- sudo -u postgres psql
- CREATE USER graphite WITH PASSWORD 'password';
- CREATE DATABASE graphite WITH OWNER graphite;
- \q
- ########################
- sudo vim /etc/graphite/local_settings.py
- SECRET_KEY = 'a_salty_string'
- TIME_ZONE = 'America/Los Angeles'
- USE_REMOTE_USER_AUTHENTICATION = True
- DATABASES = {
- 'default': {
- 'NAME': 'graphite',
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'USER': 'graphite',
- 'PASSWORD': 'password',
- 'HOST': '127.0.0.1',
- 'PORT': ''
- }
- }
- #######################
- sudo graphite-manage syncdb
- sudo vim /etc/default/graphite-carbon
- CARBON_CACHE_ENABLED=true
- #######################
- sudo vim /etc/carbon/carbon.conf
- ENABLE_LOGROTATION = True
- #######################
- sudo vim /etc/carbon/storage-schemas.conf
- [carbon]
- pattern = ^carbon\.
- retentions = 60:90d
- [default_1min_for_1day]
- pattern = .*
- retentions = 60s:1d
- ####################
- sudo cp /usr/share/doc/graphite-carbon/examples/storage-aggregation.conf.example /etc/carbon/storage-aggregation.conf
- ####################
- sudo vim /etc/carbon/storage-aggregation.conf
- [min]
- pattern = \.min$
- xFilesFactor = 0.1
- aggregationMethod = min
- sudo service carbon-cache start
- ###################
- sudo apt-get install apache2 libapache2-mod-wsgi
- sudo a2dissite 000-default
- sudo cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available
- sudo a2ensite apache2-graphite
- sudo service apache2 reload
- ####################
- ssh -i mySuperSecretAWSKey.pem ubuntu@2.1.1.1 -L 8080:localhost:80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement