Skip to content

Instantly share code, notes, and snippets.

@dillera
Created January 18, 2012 17:59
Show Gist options
  • Select an option

  • Save dillera/1634493 to your computer and use it in GitHub Desktop.

Select an option

Save dillera/1634493 to your computer and use it in GitHub Desktop.

Revisions

  1. dillera revised this gist Jan 18, 2012. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions graphite-centos6-install.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # FOR CENTOS 6
    # Andrew Diller Jan 2012



    # Get EPEL Repo installed
    rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt
    @@ -6,8 +10,8 @@ rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noar
    vi /etc/yum.repos.d/epel.repo

    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    * then comment all the mirrorlist= lines
    * and uncomment the #baseurl lines
    # then comment all the mirrorlist= lines
    # and uncomment the #baseurl lines
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


  2. dillera revised this gist Jan 18, 2012. 1 changed file with 11 additions and 8 deletions.
    19 changes: 11 additions & 8 deletions graphite-centos6-install.txt
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@

    # Get EPEL Repo installed
    rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

    #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    vi /etc/yum.repos.d/epel.repo

    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    * then comment all the mirrorlist= lines
    * and uncomment the #baseurl lines
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    @@ -13,27 +14,29 @@ vi /etc/yum.repos.d/epel.repo
    yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 bitmap bitmap-fonts python-devel python-crypto pyOpenSSL gcc python-zope-filesystem python-zope-interface git gcc-c++ zlib-static


    h2. Install Graphite
    # Install Graphite and dependancies

    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/whisper-0.9.9.tar.gz"
    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/carbon-0.9.9.tar.gz"
    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz"

    * install easy_install for python 2.6
    # install easy_install for python 2.6
    # Centos 6 has python 2.6 as default now
    wget 'http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086'
    sudo sh ./setuptools-0.6c11-py2.6.egg


    h3. Carbon
    # Carbon
    pushd carbon-0.9.9
    sudo python ./setup.py install
    popd

    h3. Whisper
    # Whisper
    pushd whisper-0.9.9
    sudo python ./setup.py install
    * ok
    popd

    h3. Web
    # Web
    sudo easy_install django-tagging
    sudo easy_install twisted
    sudo easy_install txamqp
    @@ -45,7 +48,7 @@ All optional dependencies are met.
    sudo python ./setup.py install


    * AS ROOT
    # Perform these AS ROOT

    chown -R apache:apache /opt/graphite/storage/

  3. dillera created this gist Jan 18, 2012.
    84 changes: 84 additions & 0 deletions graphite-centos6-install.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,84 @@

    rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

    #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    vi /etc/yum.repos.d/epel.repo

    * then comment all the mirrorlist= lines
    * and uncomment the #baseurl lines
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


    yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 bitmap bitmap-fonts python-devel python-crypto pyOpenSSL gcc python-zope-filesystem python-zope-interface git gcc-c++ zlib-static


    h2. Install Graphite

    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/whisper-0.9.9.tar.gz"
    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/carbon-0.9.9.tar.gz"
    wget "http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz"

    * install easy_install for python 2.6
    wget 'http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086'
    sudo sh ./setuptools-0.6c11-py2.6.egg


    h3. Carbon
    pushd carbon-0.9.9
    sudo python ./setup.py install
    popd

    h3. Whisper
    sudo python ./setup.py install
    * ok

    h3. Web
    sudo easy_install django-tagging
    sudo easy_install twisted
    sudo easy_install txamqp

    [graphite-web-0.9.9 ]$ python ./check-dependencies.py
    All necessary dependencies are met.
    All optional dependencies are met.

    sudo python ./setup.py install


    * AS ROOT

    chown -R apache:apache /opt/graphite/storage/

    cp /opt/graphite/webapp/graphite/local_settings.py.example \
    /opt/graphite/webapp/graphite/local_settings.py

    python /opt/graphite/webapp/graphite/manage.py syncdb

    cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
    vi /opt/graphite/conf/carbon.conf

    cp /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
    vi /opt/graphite/conf/storage-schemas.conf

    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    [everything_1min]
    priority = 100
    pattern = .*
    retentions = 60s:2160s,300s:10080s,600s:12960s,3600s:26280s
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


    # Deal with an HTTP Proxy
    git config --global http.proxy http://proxy:3128
    git config --global http.sslverify false


    * Node for Statsd
    yum -y install zlib-static
    git clone https://github.com/joyent/node.git
    pushd node
    ./configure && make && sudo make install
    popd

    # install express as root
    npm install express --proxy 'http://proxy:3128' --registry http://registry.npmjs.org