Wednesday, June 20, 2012

Installing Graphite on Ubuntu 12.04

Install dependencies: Install whisper: Install and configure Carbon (data aggregator) Install Graphite (webapp): At the moment, uncomment the following line Configure Apache:

Edit the following file:/etc/apache2/sites-available/default
Make sure that the configuration for WSGISocketPrefix is set as follows:

Otherwise, you will get the following error:
[Tue Jun 19 13:21:28 2012] [error] [client] (2)No such file or directory: mod_wsgi (pid=19506): Unable to connect to WSGI daemon process 'graphite' on '/etc/apache2/run/wsgi.19365.1.1.sock' after multiple attempts.
Create initial database: Create the admin for graphite: Start carbon (data aggregator)

Check the log file for any error:
/opt/graphite$ find . -name '*.log' | xargs tail -F

To Feed the data do the following:

Go into the server localhost in your prefer browser and you should see graphite site.


  1. You're welcome Francisco! Un abrazo fuerte desde Miami.

  2. awesome! the trick on WSGISocketPrefix helped me figure out the problem after an hour of banging my head :) thanks!

  3. In the section for 'Install Graphite', you need:

    sudo cp /opt/graphite/webapp/graphite/ /opt/graphite/webapp/graphite/


    sudo vim /opt/graphite/webapp/graphite/

  4. After hours of struggling I stumbled upon this post and managed to finally get Graphite running. Thank you very much!

  5. Thanks Marcelo, with your tips, I was able to write up an auto-install latest Graphite script on Ubuntu 12.04, you can check it out at: and, also CloudFormation template is provided at:

  6. This comment has been removed by the author.