Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mynkow/6823111 to your computer and use it in GitHub Desktop.
Save mynkow/6823111 to your computer and use it in GitHub Desktop.
How to install Graphite and statsD on Linux Ubuntu or Debian Machine
1) Login to the Debian server. If you are not logged in as root type sudo -i. You can also execute all commands with other user and prefix with sudo. It depends on how your linux and linux user are configured.
2) cd $home
3) apt-get install git
4) git clone git://github.com/gingerlime/graphite-fabric.git
5) cd graphite-fabric
6) apt-get install python-dev
7) apt-get install python-setuptools
8) apt-get install python-pip
9) pip install fabric
10) pip install daemonize
11) pip install Twisted==11.1.0
12) apt-get install libssl-dev
// It might prompt you for the root password on the host you are trying to instal onto.
// You can use it with a user other than root, as long as this user can sudo.
// During the installation, you would be asked to set up the django superuser account. You might want to create an account, // but it's not strictly necessary. If you answer no, the installation will still work fine.
// (hostname should be the name of the server you are installing onto)
13) fab graphite_install -H root@hostname
14) fab statsd_install -H root@hostname
The scripts are meant to be used as a starting point for experimenting and trying out graphite and statsd, but they are by no means 'production-ready'. Further configuration would be required. This is of particular concern when considering security. The installed host(s) will have open ports listening, and access to the graphite web console is without any authentication.
Sources:
https://github.com/mynkow/graphite-fabric
http://stackoverflow.com/questions/5436606/using-etsys-statsd-in-a-windows-environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment