$ wget https://raw.githubusercontent.com/graphite-project/graphite-web/master/requirements.txt
$ pip install -r requirements.txt
$ pip install https://github.com/graphite-project/ceres/tarball/master
$ pip install whisper carbon graphite-web
References
$ cd /opt/graphite/conf/
$ cp carbon.conf.example carbon.conf
$ cp storage-schemas.conf.example storage-schemas.conf
$ cp graphite.wsgi.example graphite.wsgi
$ cd /opt/graphite/webapp/graphite/
$ cp local_settings.py.example local_settings.py
storage-schemas.conf
example:
[pm2]
pattern = ^pm2\.
retentions = 1m:1d,5m:7d,15m:30d
References
$ python /opt/graphite/webapp/graphite/manage.py syncdb
By default, carbon-cache.py will start a listener on port 2003 that will wait for data to be submitted.
$ /opt/graphite/bin/carbon-cache.py start
References carbon
$ /opt/graphite/bin/run-graphite-devel-server.py --libs=/opt/graphite/webapp/ /opt/graphite/
-
Mac OS X
Required XCode and Command Line Tools
-
TypeError: fetch() takes at most 3 arguments (4 given)
Mostly, your eggs are not matching the requirements.txt, try to uninstall them and reinstall again by
$ pip install -r requirements.txt
. -
Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found
$ yum install libffi-devel.x86_64 $ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/
-
_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
$ yum install python-devel.x86_64