Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have statsd+graphite running in my Windows environment using the C# client <a href="https://github.com/neutmute/NStatsD.Client">NStatsD</a>.</p> <p>Here are my notes for getting the Linux VM setup:</p> <p><em>Note: I know enough Linux to be dangerous but am otherwise a noob and could be doing something unwittingly horrible.</em></p> <ol> <li>Install Ubuntu Server 12.04. I used VirtualBox for dev and then later EC2 for prod.</li> <li><p>Download <a href="https://github.com/gingerlime/graphite-fabric">graphite-fabric</a> to your home folder. This is a script that will download, compile and install graphite and statsd. It expects a clean box and uses nginx for the web server.</p> <p><code>sudo apt-get install git</code> </p> <p><code>git clone git://github.com/gingerlime/graphite-fabric.git</code></p> <p><code>cd graphite-fabric/</code></p></li> <li><p>Install prereq's for fabric</p> <p><code>sudo apt-get install python-setuptools</code></p></li> <li><p>The next steps are a download, compile and install which can take some time. It is worthwhile setting a keep alive on any putty ssh session before continuing.</p></li> <li><p>Now install as per gingerlime's instructions in the README.md - including the requirements section. </p></li> <li>Install statsd as per gingerlime's instructions.</li> <li>Reboot</li> <li>Execute <code>netstat -nulp</code> and observe 8125 is in use to confirm statsd is listening.</li> <li>Check carbon is running <code>tail /opt/graphite/storage/log/carbon-cache/carbon-cache-a/listener.log</code>. If it isn't, try <code>sudo /etc/init.d/carbon start</code></li> </ol> <p>Now you have your server running, try throwing some counters at it with the <a href="https://github.com/neutmute/NStatsD.Client">NStatsD</a> client.</p> <p><strong>Timezone fix</strong>: </p> <p>This will fix graphite to graph times in your local zone</p> <ol> <li><code>cd /opt/graphite/webapp/graphite</code></li> <li><code>sudo cp local_settings.py.example local_settings.py</code></li> <li><code>sudo chown www-data:www-data local_settings.py</code> (check with <code>ls -l</code> that permissions look right)</li> <li><code>sudo pico local_settings.py</code> Set TIME_ZONE to something like <code>Australia/Sydney</code>. Discover what timezones you can use in <code>/usr/share/zoneinfo/</code></li> <li>Save and restart the box (not sure how to make it pick up the change without restart)</li> </ol> <p><strong>EC2 Notes</strong></p> <p>root is disabled on EC2. Fabric prompts for a root password which you don't have. Use the <code>-i keyfile</code> argument with fab to give it your ssh keyfile instead.</p> <p><strong>VirtualBox Notes</strong></p> <p><a href="http://vboxvmservice.sourceforge.net/">VBoxVMService</a> was handy to automatically run the VM as a service in my Windows dev environment.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload