Install Graphite di CentOS 7 - Graphite merupakan salah satu tools yang dapat digunakan untuk membuat graphing system.
Baca juga :
Baca juga :
Install Nagios 4 Core + PNP4Nagios di Centos 7
Install Ganglia Monitoring System di Centos 7
Install LAMP (Linux, Apache, Mysql, PHP) di Centos 7
Graphite Core
Graphite terdiri dari berberapa package inti, diantaranya:
- Graphite Web, merupakan front-end web untuk menampilkan graph.
- Carbon, bertugas untuk menerima data matric numeric yang kemudian di store pada storage.
- Whisper, lebih dikenal sebagai RRDTools, bertugas sebagai storage data.
- StatsD, bertugas mengumpulkan data dan dikirimkan ke carbon.
Install Graphite di CentOS 7
Install graphite dan package dependency nya.
yum install httpd git net-snmp mod_wsgi git gcc-c++ nodejs npm mlocate
yum install python-django python-pip python-django-tagging python-django-bash-completion pyparsing pytz python-memcached python-devel pycairo pyserial python-fpconst python-rrdtool python-zope-interface python-whisper python-carbon
yum install collectd collectd-snmp collectd-apache statsd
pip install graphite-web
Setelah proses installasi selesai, selanjutnya copy berberapa file kofigurasi carbon.
updatedbSet berberapa option pada file local_setting.py.
cp /usr/share/doc/python-carbon-*/conf/storage-aggregation.conf.example /etc/carbon/storage-aggregation.conf
cd /opt/graphite/webapp/graphite/
cp local_settings.py.example local_settings.py
vi local_settings.py
SECRET_KEY = '07091991'Masih pada direktory yang sama, jalankan perintah berikut untuk mebuat validasi pada graphite.
TIME_ZONE = 'Asia/Jakarta'
python manage.py syncdb
Would you like to create one now? (yes/no): yesPada file storage-schemas.conf, tambahkan pattern dibawah ini.
Username (leave blank to use 'root'):
Email address: driotantowi@gmil.com
Password: <masukanpassword>
Password (again):<masukanpasswod>
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
vi /etc/carbon/storage-schemas.conf
[default]Copy beberapa example pada directory graphite.
pattern = .*
retentions = 5m:7d,15m:28d,30m:2y
cd /opt/graphite/conf/
cp dashboard.conf.example dashboard.conf
cp graphTemplates.conf.example graphTemplates.conf
cp graphite.wsgi.example graphite.wsgi
cd /opt/graphite/examples/Enable option virtual host pada file graphite.conf.
cp example-graphite-vhost.conf /etc/httpd/conf.d/graphite.conf
vi /etc/httpd/conf.d/graphite.conf
NameVirtualHost *:80Edit lokasi direktori graphite pada file carbon.conf.
vi /etc/carbon/carbon.conf
STORAGE_DIR = /opt/graphite/storage/Setelah itu restart serivce statds, carbon dan http.
LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
WHITELISTS_DIR = /var/lib/carbon/lists/
CONF_DIR = /etc/carbon/
LOG_DIR = /opt/graphite/storage/log/
PID_DIR = /var/run/
systemctl enable carbon-cache
systemctl start carbon-cache
systemctl enable httpd
systemctl restart httpd
systemctl enable statsdDisable firewall.
systemctl start statsd
systemctl stop firewalldSelanjutnya set permission direktori graphite dan jalankan graphite.
chmod 777 -R /opt/graphiteJika sudah di jalankan dan tidak muncul error, maka graphite web sudah dapat di akses via browser.
cd /opt/graphite/bin/
./run-graphite-devel-server.py /opt/graphite/
ip-server:8080Output :
Demikian tutorial singkat dari dimasrio.com mengenai install graphite di centos 7. Semoga bermanfaat bagi kita semua dan selamat mencoba..!!!
EmoticonEmoticon
Catatan: Hanya anggota dari blog ini yang dapat mengirim komentar.