We have recently rebranded and changed our name from Dataloop.IO to Outlyer. Our agent is still called “dataloop agent”, and relevant code reflects the old name (Dataloop) as well. Thank you for your patience as we update everything.
StatsD enables developers to instrument server side code and send metrics to Outlyer for visualisation and alerting. Data is sent using UDP so network issues will never slow your application down.
Things you need to get started¶
- Connection details for a StatsD server
- A StatsD client library
Basic one-time setup¶
Once you have a server setup find an appropriate StatsD Client for the language you are using.
All StatsD client libraries will need to be configured with a StatsD server and port to connect to. In our example we've spun up a StatsD server at demo-statsd.dataloop.io on port 8125 udp.
Configuration within the app is as simple as adding:
from statsd import StatsClient statsd = StatsClient(host='demo=statsd.dataloop.io', port=8125, prefix=None, maxudpsize=512)
That's pretty much it. You can now use the statsd object in your code to start sending metrics.