graphite on ubuntu - Supplyframe/grunf GitHub Wiki

Setting up graphite server on ubuntu

One of the use case of grunf is to stream realtime events to graphite. We recommand you to setup graphite on linux over other platforms, because it has native X11 support, which is critical for graphtie's installation.

Setup installation directory

Graphite will be installed to /opt/graphite, so you need to create the directory for graphtie and change the ownership to yourself. (or group members you want to assign.)

cd /opt/
sudo mkdir graphite
sudo chown $USER graphite

System dependency

You'll need python-cairo, install it with system's package manager is the easiest way to do.

sudo apt-get install python-cairo

Graphite python package dependencies

These python libraries are the necessary packages you need to install to run graphite.

pip install carbon
pip install whisper
pip install django==1.3.1
pip install django-tagging
pip install graphite-web

Setup graphite configurations

cd /opt/graphite/webapp/graphite
python manage.py syncdb

cd /opt/graphite/conf
cat > storage-schemas.conf <<END
pattern = .*
retentions = 60s:7d,5m:21d,15m:5y
END

cp carbon.conf.example carbon.conf

Setup timezone

cd /opt/graphite/webapp/graphite
echo "TIME_ZONE = 'America/Los_Angeles'" > local_settings.py

Change the timezone variable to the one fit your need.

Running graphite

  1. /opt/graphite/bin/carbon-cache.py start You need to first start the carbon server so that you can receive data from clients.

  2. /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite

  3. Open your browser and see if http://localhost:8080 is up.

Reference

  1. Installing graphite on OSX Lion using brew, pythonbrew and virtualenv
⚠️ **GitHub.com Fallback** ⚠️