Fork of https://gist.github.com/1071989
Further CentOS 5.x instructions customized by MJH
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
TK - replace with nodejs-stable YUM instructions
curl http://npmjs.org/install.sh | sh
yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 \
bitmap bitmap-fonts python-devel python-crypto pyOpenSSL zope
wget "http://launchpad.net/graphite/1.0/0.9.7/+download/whisper-0.9.7-1.noarch.rpm"
rpm -Uvh whisper-0.9.7-1.noarch.rpm
rm -rf whisper*.rpm
wget "https://launchpad.net/graphite/0.9/0.9.7/+download/carbon-0.9.7-1.noarch.rpm"
rpm -Uvh carbon-0.9.7-1.noarch.rpm
### TK - specific .conf changes
### TK - reference to where the changes for the 13mos stuff came from
rm -rf carbon*.rpm
pip-2.6 install twisted
wget "https://launchpad.net/graphite/0.9/0.9.7/+download/graphite-web-0.9.7c-1.noarch.rpm"
rpm -Uvh graphite-web-0.9.7c-1.noarch.rpm
rm -rf graphite-web*.rpm
Copy the local_settings example file to creating the app's settings - this is where both carbon federation and authentication is configured.
cp /opt/graphite/webapp/graphite/local_settings.py.example \
/opt/graphite/webapp/graphite/local_settings.py
python /opt/graphite/webapp/graphite/manage.py syncdb
chown -R apache:apache /opt/graphite/storage/
wget https://gist.github.com/raw/1071989/32b8da693933ccc5b04445c13ec280a622f61400/carbon.init.sh
mv carbon.init.sh /etc/init.d/carbon
chmod 0755 /etc/init.d/carbon
chkconfig --add carbon
service httpd start
cd /opt
git clone git://github.com/etsy/statsd.git
cd statsd
unless you used non-default ports for some other feature of the system, the defaults in the config file are fine
cp exampleConfig.js local.js
wget https://gist.github.com/raw/1071989/c81cb3e25c3a8ed5426572474344e3f8eb0c6e53/statsd.init.sh
mv statsd.init.sh /etc/init.d/statsd
chmod 0755 /etc/init.d/statsd
chkconfig --add statsd