Graphite : Install2017/10/25 |
Install Graphite to visualize metrics.
|
|
[1] | |
[2] |
Create a privileged user by sudo, refer to here.
On this example, set it to [cent] user. |
[3] | Install Graphite and Carbon. |
# install from EPEL [root@dlp ~]# yum --enablerepo=epel -y install graphite-web python-carbon
|
[4] | Configure Graphite. |
[root@dlp ~]#
vi /etc/graphite-web/local_settings.py # line 13: uncomment and specify any secret-key you like SECRET_KEY = ' my_secret_key '
# line 23: uncomment and change to your timezone TIME_ZONE = ' Asia/Tokyo '
[root@dlp ~]#
vi /etc/httpd/conf.d/graphite-web.conf # line 30: add access permission for your local network Require local
Require ip 10.0.0.0/24
# initialize database [root@dlp ~]# /usr/lib/python2.7/site-packages/graphite/manage.py syncdb Creating tables ... Creating table account_profile Creating table account_variable Creating table account_view Creating table account_window Creating table account_mygraph Creating table dashboard_dashboard_owners Creating table dashboard_dashboard Creating table events_event Creating table url_shortener_link Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django_session Creating table django_admin_log Creating table django_content_type Creating table tagging_tag Creating table tagging_taggeditem You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes # specify privileged user you set Username (leave blank to use 'root'): cent Email address: cent@localhost Password: Password (again): Superuser created successfully. Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s)[root@dlp ~]# chown -R apache. /var/lib/graphite-web [root@dlp ~]# systemctl start carbon-cache [root@dlp ~]# systemctl enable carbon-cache [root@dlp ~]# systemctl restart httpd |
[5] | If SELinux is enabled, change boolean value. |
[root@www ~]# setsebool -P httpd_can_network_connect on |
[6] | Access to [http://(Graphite server's hostname or IP address)/] from any Clients which is in local network you set with web browser, then, Graphite Web is shown like follows. |
[7] | To open the tree on the left pane, you can see Graphs of data Carbon collected. |
Sponsored Link |
|