graphite on ubuntu - Supplyframe/grunf GitHub Wiki
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.
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
You'll need python-cairo, install it with system's package manager is the easiest way to do.
sudo apt-get install python-cairo
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
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
cd /opt/graphite/webapp/graphite
echo "TIME_ZONE = 'America/Los_Angeles'" > local_settings.py
Change the timezone variable to the one fit your need.
-
/opt/graphite/bin/carbon-cache.py start
You need to first start the carbon server so that you can receive data from clients. -
/opt/graphite/bin/run-graphite-devel-server.py /opt/graphite
-
Open your browser and see if
http://localhost:8080
is up.