Skip to content

Instantly share code, notes, and snippets.

@LincolnBryant
Forked from GregMefford/setup-statsd-centos.sh
Last active January 2, 2016 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LincolnBryant/8250385 to your computer and use it in GitHub Desktop.
Save LincolnBryant/8250385 to your computer and use it in GitHub Desktop.

Installing from scratch

Starting from a fresh install of EL6.5, first install EPEL:

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Then install the Graphite dependencies:

# yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached nodejs npm nc

Once NPM is installed, use it to install StatsD:

# npm install statsd

Setup the DB (optional?)

Run syncdb to setup the database and prime the authentication model (if you're using the DB model)

# python /usr/lib/python2.6/site-packages/graphite/manage.py syncdb

Open the firewall (optional)

# iptables -I INPUT 5 -m state --state NEW -p tcp --dport 80 -j ACCEPT
# iptables-save > /etc/sysconfig/iptables

Start the base services

# service carbon-cache start
# service memcached start
# service httpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment