- Found from https://gist.github.com/889297
- Customised by Luke Morton
- Customized by sivy (for debian)
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
tar xvf node-v0.4.9.tar.gz
pushd node-v0.4.9
./configure
make
make install
popd
rm -rf node-v0.4.9*
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 "http://launchpad.net/graphite/1.0/0.9.7/+download/carbon-0.9.7-1.noarch.rpm"
rpm -Uvh carbon-0.9.7-1.noarch.rpm
cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
cp /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
rm -rf carbon*.rpm
wget http://pypi.python.org/packages/source/T/Twisted/Twisted-10.2.0.tar.bz2
tar jxf Twisted-10.2.0.tar.bz2
pushd Twisted-10.2.0
python setup.py install
popd
rm -rf Twisted-10.2.0*
wget "http://launchpad.net/graphite/1.0/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
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/1648286/33a1db355364ac2cfde576134f8c3a8a0cda97d6/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/1648286/d3f4e3f868798c642c2e474fe998d68a33edff21/statsd.init.sh
mv statsd.init.sh /etc/init.d/statsd
chmod 0755 /etc/init.d/statsd
chkconfig --add statsd
Hi there,
chkconfig is no longer available on ubuntu, perhaps we can add the following after chmod +x:
update-rc.d statsd defaults
update-rc.d statsd enable
thanks for sharing this,
cheers,
--hn