Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo apt-get update
sudo apt-get install git -y
sudo apt-get install apache2-mpm-prefork -y
sudo apt-get install libapache2-mod-wsgi -y
sudo apt-get install python-cairo -y
sudo apt-get install python2.7 -y
sudo apt-get install python-django -y
sudo apt-get install python-django-tagging -y
sudo apt-get install python-simplejson -y

...

Graphite modules

Anchor
download-install
download-install

...

Setup Whisper, Carbon and Graphite-web

Clone the GitHub repositories (use either the 0.9.x [stable] branch or master   [unstable/alpha] branch).

Note: The source files found at https://launchpad.net/graphite/+download/ are very out of date and do not support Django versions greater than 1.4.

My starting directory looks like.

...

On an Linux-based system, the following commands should get the correct branches of the three Graphite modules.

Code Block
cd
git clone https://github.com/graphite-project/whisper.git
git clone https://github.com/graphite-project/carbon.git
git clone https://github.com/graphite-project/graphite-web.git
pushd carbon/
git checkout 0.9.x
popd;pushd graphite-web
git checkout 0.9.x
popd;pushd whisper
git checkout 0.9.x
popd

Your starting directory may look something like the following.

No Format
ls -l /home/ubuntu
drwxrwxr-x  9 ubuntu ubuntu 4096 Sep 18 20:59 carbon/
drwxrwxr-x 11 ubuntu ubuntu 4096 Sep 18 20:59 graphite-web/
drwxrwxr-x  4 ubuntu ubuntu 4096 Sep 18 20:59 whisper/

Anchor
install-whisper
install-whisper
Install whisper

Code Block
cd whisper
sudo python setup.py install
cd ..

Anchor
install-carbon
install-carbon
Install Carbon

Code Block
cd carbon
sudo python setup.py install
cd ..

This installs to /opt/graphite by default.

Anchor
install-graphite-web
install-graphite-web
Install Graphite

...

-web

...

Check for any fatal errors and resolve them, (ie. missing modules, libraries). There are 3 warnings that can be ignored (they are related to optional features). Once you are ready.

Code Block
cd graphite-web
sudo python check-dependencies.py

Install

Code Block
sudo python setup.py install
cd ..

Anchor
configure-graphite
configure-graphite
Configure Graphite

...