Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks for this great tutorials on Graphite, collectD, statsD . I’ve this following doubt. Now collectD lastest version comes with a statsD plugin. Does that mean using collectD with statsD plugin will do the work of both collectD and statsD? or collectD with statsD plugin acts as a bridge between collectD and statsD?
Thank you
snmalleswararao.chinta:
The collectd plugin implements the protocol, but is not nearly as light weight. So it might not be the best choice for all users. I set up all of them in the articles to demonstrate the functionality, but they do have a bit of overlap.
Another reason you may wish to use them separately is that it lets you swap out components easier. There are collectd alternatives that may suit your needs better, and having a separate StatsD instance running would allow you to easily make the transition to a new tool.
But really, its a matter of preference and your specific setup.
I have a problem with sending Raw data to graphite. Every other type of data works great for me, and I thank you for that, great guide! I tried sending raw data with both the python implementation of Statsd, and the command line “echo” to send Graphite data directly, both of which, send the data. However, carbon does not handle the data correctly…I have tried doing this guide twice, in case I missed something, but I have not.
With Python, it returns “True”, because the data is sent, and received, which is clear in the graphite cache.log file. However, this is the response. Request-Cache miss [eea16869e132ac38b986567144ab0080] I am assuming somewhere in the carbon—>whisper process something goes wrong. Does anyone have this problem too? Or have any idea what may be wrong? Maybe the aggregation/schemas file?
This will allow us to configure StatsD while still leaving Carbon active for our other services:
sudo service statsd stop —> sudo service carbon-cach start
Please change carbon-cach to carbon-cache
Great write up once again Justin
I seem to be having an issue starting the statsd service. Followed all the instructions to the letter, everything else is working okay but whenever I run sudo service statsd start, it will say it started and give it a process ID, but when I run a sudo service statsd status command it shows the status statsd stop/waiting. Anyone else had the same issue and know how I might be able to resolve it?
Same problem as vaanderal. The log (/var/log/upstart/statsd.log) displays the following error:
module.js:340
throw err;
^
Error: Cannot find module './servers/udp'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at startServer (/usr/share/statsd/stats.js:54:19)
at /usr/share/statsd/stats.js:190:20
at null.<anonymous> (/usr/share/statsd/lib/config.js:40:5)
at EventEmitter.emit (events.js:95:17)
at /usr/share/statsd/lib/config.js:20:12
at fs.js:268:14
Note that ~/build/statsd/servers/udp.js is not missing.
Solution to the question above
It seems that the command
sudo dpkg -i statsd*.deb
does not copy the “servers” folder in our system installation. I do not know if this is the best way to do things in nodejs but the following command solved the problem for me:
just after
sudo dpkg -i statsd*.deb
type
sudo cp -r ~/build/statsd/servers /usr/share/statsd
In Ubuntu trusty 14.04, python-statsd version 2.0.1-1 has a bug,
>>> import statsd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/statsd/__init__.py", line 20, in <module>
host = getattr(settings, 'STATSD_HOST', 'localhost')
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting STATSD_HOST, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
fixed by installing 3.0.1-1 from debian : http://pkgs.org/debian-sid/debian-main-i386/python-statsd_3.0.1-1_all.deb.html re: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772936
The example “statsd.Gauge” doesn’t work, as they have refactored API it seems, but I prefer python-* packages over pip, so its a start.
This comment has been deleted