Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Installing graphite (or not as the case may be!)

solipet
June 10, 2014

Installing graphite (or not as the case may be!)

My misadventures in installing graphite so I could measure all the things. Presented on June 10, 2014 at B'more on Rails.

solipet

June 10, 2014
Tweet

More Decks by solipet

Other Decks in Technology

Transcript

  1. How  to  install   graphite   (or  not,  as  the

     case  may  be…)     Doug  Price   @solipet   June  10,  2014  
  2. Let’s  get  started!   •  Spin  up  a  clean  VM

     on  AWS   •  Follow  the  direcOons   •  Everything  will  work   •  CelebraOon!  
  3. Install  all  the  needed  packages   Um…     It

     was  just  supposed  to  …  work!  
  4. Download  graphite…   $  wget  h^ps://launchpad.net/graphite/0.9/0.9.10/+download/graphite-­‐web-­‐0.9.10.tar.gz   $  wget  h^ps://launchpad.net/graphite/0.9/0.9.10/+download/carbon-­‐0.9.10.tar.gz

      $  wget  h^ps://launchpad.net/graphite/0.9/0.9.10/+download/whisper-­‐0.9.10.tar.gz     $  find  *.tar.gz  -­‐exec  tar  -­‐zxvf  '{}'  \;     $  cd  whisper*   $  sudo  python  setup.py  install   $  cd  ../carbon*   $  sudo  python  setup.py  install   $  cd  ../graphite*   $  sudo  python  check-­‐dependencies.py   All  necessary  dependencies  are  met.   All  opOonal  dependencies  are  met.   All  dependencies   are  met!      W00t!  
  5. Configure  Graphite   $  cd  /opt/graphite/conf   $  sudo  cp

     carbon.conf.example  carbon.conf   $  sudo  nano  storage-­‐schemas.conf     #  Add  the  following:   [stats]   priority  =  110   pa^ern  =  .*   retenOons  =  10:2160,60:10080,600:262974     $  cd  /opt/graphite/webapp/graphite/   $  sudo  python  manage.py  syncdb   WHA??!  
  6. The  wrong  version  of  Django??   •  Deprecated  in  1.4

        $  apt-­‐cache  show  python-­‐django  |  grep  -­‐i  version   Version:  1.6.1-­‐2ubuntu0.3   Version:  1.6.1-­‐2  
  7. Just  go  follow  their  instrucOons..   h^ps://www.digitalocean.com/community/ tutorials/how-­‐to-­‐install-­‐and-­‐use-­‐graphite-­‐on-­‐an-­‐ ubuntu-­‐14-­‐04-­‐server  

      $  sudo  apt-­‐get  install  graphite-­‐web  graphite-­‐carbon     That’s  it.    It’s  installed!   They  walk  you  through  some  basic  configuraOon…     Took  me  ~20  to  launch  a  VM,  install,  configure  and  have  it  running,   while  enjoying  a  beer!    J  
  8.   I  menOoned:     The  blog  I  was  going

     to  follow…   h^p://ma^.aimonew.net/posts/2013/06/26/pracOcal-­‐guide-­‐to-­‐graphite-­‐ monitoring/     The  gem  I  ended  up  using…   h^ps://github.com/jnunemaker/nunes       Thanks!