问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/13502149/how-does-statsd-store-its-data