E.Z.
E.Z.

Reputation: 159

How to collect stats with StatsD?

So, the one thing I do not understand from the Etsy StatsD documentation is how to get useful metrics sent from StatsD.

I understand that you can send metrics by:

echo "service.test.random:1|c" | nc -u -w0 127.0.0.1 8125

But, do I wrap a bunch of metrics I want to use in a bash cron job? Do I use the files located in /install/location/statsd/lib/ as basic metrics to get the process going? If so, do they just run? Do I add a flag in the config to pick up these files?

I am a bit confused on getting StatsD working for me.

Upvotes: 0

Views: 1826

Answers (1)

dukebody
dukebody

Reputation: 7195

You usually send stats using a statsd client from a running application. For example, increment a counter every time a user buys a product, set timers for the different views. This way metrics are sent in "real time" from the application, and you can later inspect them (and their rollups) in Graphite.

Check the list of available clients.

Upvotes: 0

Related Questions