BIP KB:
How to Install Graphite On A CentOS/RHEL Server

Article By lee


img


Install Graphite. Graphite is highly scalable real-time graphing system. It is seen as a replacement for more traditional graphing systems such as cacti and munin.

Install Graphite Requirements

Graphite requires:

  • python2.4 or greater
  • pycairo (with PNG backend support)
  • mod_python
  • django
  • python-ldap (optional - needed for ldap-based webapp authentication)
  • python-memcached (optional - needed for webapp caching, big performance boost)
  • python-sqlite2 (optional - a django-supported database module is required)
  • bitmap and bitmap-fonts required on some systems, notably Red Hat


To install graphite, first you will need to enable the EPEL repository first. Once enabled pull in the required RPMS.

# yum install graphite-web graphite-web-selinux mysql mysql-server MySQL-python


Start up mysql and setup a root password.
# service mysqld start
# /usr/bin/mysql_secure_installation


Configure graphite to use the MySQL database within the /etc/graphite-web/local_settings.py config file.
DATABASES = {
'default': {
'NAME': 'graphite',
'ENGINE': 'django.db.backends.mysql',
'USER': 'graphite',
'PASSWORD': 'complexpassw0rd',
'HOST': 'localhost',
'PORT': '3306',
}
}


Create the graphite account and database within MySQL.
# mysql -e "CREATE USER 'graphite'@'localhost' IDENTIFIED BY 'complexpassw0rd';" -u root -p 
# mysql -e "GRANT ALL PRIVILEGES ON graphite.* TO 'graphite'@'localhost';" -u root -p
# mysql -e "CREATE DATABASE graphite;" -u root -p
# mysql -e 'FLUSH PRIVILEGES;' -u root -p


Setup the graphite database with what is required by graphite.
# /usr/lib/python2.6/site-packages/graphite/manage.py syncdb


You should now have a working graphite installation. http://localhost/graphite




Tags: , , , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.

DEPLOY VPS SERVER

Leave a Reply



Feedbacks