How to Install Graphite On A CentOS/RHEL Server

Article By: lee


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/ config file.
'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/ syncdb

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

Tags: , , , , , ,

Welcome to the healthcare-only HIPAA - GDPR compliant cloud. Exclusively hosted on a HPC environment!

Learn more or start today by choosing your secure HIPAA - GDPR compliant server's Operating System bellow and pick the package that's best for you.

BIPmd makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine, thousand or more.

Windows VPS options and add ons
Linux VPS options and add ons


Looking for a custom solution?

Our technicians can provide you with the best custom-made solutionss on the market, no matter whether you're a small business or large enterprise.

Get in touch

Leave a Reply