Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does StatsD store its data?

Tags:

statsd

I've been going through the README at https://github.com/etsy/statsd but I can't figure out how does StatsD store the data it gets?

Does it do any permanent storage or is it one off thing? I was trying to figure out what database (if any) it uses or if it simply uses a file-based storage.

like image 847
MechaStorm Avatar asked Nov 21 '12 21:11

MechaStorm


People also ask

What is StatsD protocol?

A network daemon that runs on the Node. js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends aggregates to one or more pluggable backend services (e.g., Graphite).

Does Datadog use StatsD?

The Datadog Agent can ingest StatsD metrics as well as metrics in the DogStatsD format, which extends StatsD to include tags. DogStatsD Mapper runs as part of the Agent's built-in DogStatsD server.

What is StatsD host?

host is the host running the statsd server. It will support any kind of name or IP address you might use. port is the statsd server port. The default for both server and client is 8125.

What is StatsD client?

The StatsD client is a Java library used for recording custom application metrics and JVM metrics. It is intended to be used with the Collection Agent and the StatsD plug-in. The workflow is as follows: The StatsD client sends metrics via UDP or TCP to the agent.


1 Answers

Etsy's version of statsD does not store data per se but relies on "backends" to do something with the data it aggregates (e.g. print them out, send them to another statsD server or send them to graphite) as shown in https://github.com/etsy/statsd/tree/master/backends.

If you want permanent storage, you'll need to stand up a graphite server, use a hosted one or use a service that supports statsD natively (e.g. Datadog).

Disclosure: I work for Datadog.

like image 174
Alexis Lê-Quôc Avatar answered Sep 18 '22 03:09

Alexis Lê-Quôc