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 192.168.0.112] (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.

7 comments:

  1. very god! thanks for publish :-)

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

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

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

    sudo cp /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py

    before:

    sudo vim /opt/graphite/webapp/graphite/local_settings.py

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

    ReplyDelete
  6. 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: https://github.com/gdbtek/setup-graphite and https://github.com/gdbtek/setup-statsd, also CloudFormation template is provided at: https://github.com/gdbtek/cloudformation-templates

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete