Difference between revisions of "Graphite: Instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 26: | Line 26: | ||
CREATE DATABASE graphite WITH OWNER graphite; | CREATE DATABASE graphite WITH OWNER graphite; | ||
\q | \q | ||
+ | |||
+ | |||
+ | |||
+ | ==Konfigurasi Graphite Web Application== | ||
+ | |||
+ | Edit | ||
+ | |||
+ | sudo nano /etc/graphite/local_settings.py | ||
+ | sudo vi /etc/graphite/local_settings.py | ||
+ | |||
+ | Set SECRET_KEY dengan password yang panjang, unik, dan aman, misalnya | ||
+ | |||
+ | SECRET_KEY = '123456' | ||
+ | SECRET_KEY = 'UNSAFE_DEFAULT' | ||
+ | SECRET_KEY = 'a_salty_string' | ||
+ | |||
+ | Set TIME_ZONE | ||
+ | |||
+ | TIME_ZONE = 'Asia/Jakarta' | ||
+ | |||
+ | Set USE_REMOTE_USER_AUTHENTICATION | ||
+ | |||
+ | USE_REMOTE_USER_AUTHENTICATION = True | ||
+ | |||
+ | Set DATABASES | ||
+ | |||
+ | DATABASES = { | ||
+ | 'default': { | ||
+ | 'NAME': 'graphite', | ||
+ | 'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
+ | 'USER': 'graphite', | ||
+ | 'PASSWORD': 'graphite', | ||
+ | 'HOST': '127.0.0.1', | ||
+ | 'PORT': '' | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Save konfigurasi | ||
==Referensi== | ==Referensi== | ||
* https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server | * https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server |
Revision as of 08:26, 23 February 2016
Instalasi
sudo apt-get update sudo apt-get install graphite-web graphite-carbon
Jika di tanya "Carbon to remove the database files" bisa jawab "No" jika kita tidak ingin data yang sudah ada hilang. Jika ini merupakan instalasi yang fresh / baru, kita bisa jawab "Yes".
Install PostgreSQL
sudo apt-get install postgresql libpq-dev python-psycopg2
Buat Database User dan Database
sudo -u postgres psql
Buat database graphite, user graphite dengan password graphite
CREATE USER graphite WITH PASSWORD 'graphite'; CREATE DATABASE graphite WITH OWNER graphite; \q
Konfigurasi Graphite Web Application
Edit
sudo nano /etc/graphite/local_settings.py sudo vi /etc/graphite/local_settings.py
Set SECRET_KEY dengan password yang panjang, unik, dan aman, misalnya
SECRET_KEY = '123456' SECRET_KEY = 'UNSAFE_DEFAULT' SECRET_KEY = 'a_salty_string'
Set TIME_ZONE
TIME_ZONE = 'Asia/Jakarta'
Set USE_REMOTE_USER_AUTHENTICATION
USE_REMOTE_USER_AUTHENTICATION = True
Set DATABASES
DATABASES = { 'default': { 'NAME': 'graphite', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'graphite', 'PASSWORD': 'graphite', 'HOST': '127.0.0.1', 'PORT': } }
Save konfigurasi