I have statsd + graphite working in my Windows environment using the C # NStatsD client .
Here are my notes on configuring Linux VM:
Note. I know that Linux is quite dangerous, but in any case it is noob and can do something unimaginably terrible.
- Install Ubuntu Server 12.04. I used VirtualBox for dev and then later EC2 for prod.
Download graphite-fabric 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.
sudo apt-get install git
git clone git://github.com/gingerlime/graphite-fabric.git
cd graphite-fabric/
Set prereq for fabric
sudo apt-get install python-setuptools
The next steps are downloading, compiling and installing, which may take some time. It is worth leaving everything in order for any ssh putty session before proceeding.
Now install according to the gangster instructions in README.md - including the requirements section.
- Install statsd according to the fade instructions.
- Reboot
- Running
netstat -nulp and observing 8125 is used to confirm listening to statsd. - Verify that carbon is running
tail /opt/graphite/storage/log/carbon-cache/carbon-cache-a/listener.log . If not, try sudo /etc/init.d/carbon start
Your server is now working for you, try clicking on it for several counters with the NStatsD client.
Time zone correction :
This captures graphite for graph times in your local area.
cd /opt/graphite/webapp/graphitesudo cp local_settings.py.example local_settings.pysudo chown www-data:www-data local_settings.py (check with ls -l that the permissions look right)sudo pico local_settings.py Set TIME_ZONE to something like Australia/Sydney . Find out what time intervals you can use in /usr/share/zoneinfo/- Save and restart the window (not sure how to get it to select changes without rebooting).
EC2 Notes
root is disabled on EC2. The fabric asks for a root password that you do not have. Use the -i keyfile argument with fab to use its ssh keyfile instead.
VirtualBox Notes
VBoxVMService was convenient to automatically start the virtual machine as a service in my Windows environment.
fiat Jun 05 2018-12-12T00: 00Z
source share