Skip to content

Instantly share code, notes, and snippets.

Forked from surjikal/
Last active January 5, 2022 09:07
Show Gist options
  • Save relaxdiego/7539911 to your computer and use it in GitHub Desktop.
Save relaxdiego/7539911 to your computer and use it in GitHub Desktop.
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.


  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

brew install cairo
brew install py2cairo

Install Django

pip install Django==1.5
pip install django-tagging

Install Graphite

sudo pip install carbon
pip install whisper
sudo pip install graphite-web
sudo pip install Twisted==11.1.0 

sudo chown -R <your username>:staff /opt/graphite

Configure graphite

cp /opt/graphite/conf/carbon.conf{.example,}
cp /opt/graphite/conf/storage-schemas.conf{.example,}

Create default database

cd /opt/graphite/webapp/graphite

# Modify this file to change database backend (default is sqlite).

# Initialize database
python syncdb

Start carbon

python /opt/graphite/bin/ start

Start Graphite

python /opt/graphite/bin/ /opt/graphite

Hope that it works!

Go to:


You should see this if it works properly:


If you get a broken image, it most likely means that something is wrong py2cairo and cairo.

Check the debug output here:


Optional convenience aliases

Add this to your .bashrc or .bash_profile:

alias carbon='python /opt/graphite/bin/'
alias graphite-web='python /opt/graphite/bin/ /opt/graphite'

Additional resources

Copy link

Can any one help me to configure remote graphite.
or is there any way to have carbon-relay-ng in mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment