www.easybib.com @klimpong Till Klampäckel @klimpong — http://github.com/till I love open source. I’m addicted to graphs (and effects in keynote). /Till 2 Thursday, November 8, 12
www.easybib.com @klimpong StatsD is a collection daemon by Etsy. StatsD is Node.js. StatsD uses UDP. It’s asynchronous and painless. Backends are pluggable. /statsd 8 Thursday, November 8, 12 Etsy’s work was inspired by Flickr. standard backends: graphite, console, reapeter available backends: librato, cloudwatch, mongodb, ...
www.easybib.com @klimpong Original implementation in Node.JS. Erlang, Go, Scala, Java, Python. /statsd/pattern 9 Thursday, November 8, 12 Original, original (Cal Henderson) — something in Perl at Flickr. StatsD as a pattern to collect metrics.
www.easybib.com @klimpong Counters. Gauges. Timings. /statsd/metrics 10 Thursday, November 8, 12 Really simple, no PhD required. Counter: grows absolute over time (number of total downloads) Gauge: for current values (e.g. “currently online”) Timings: how long something took There is more in master.
www.easybib.com @klimpong Default backend. http://graphite.wikidot.com/ /statsd/graphite 11 Thursday, November 8, 12 We wanted a hosted service (less management). Read a couple blog posts about scaling Graphite which scared me off. Librato has less aggregation and very little transformation but it’s been rock solid.
www.easybib.com @klimpong Download and install Node.js: http://nodejs.org/download/ Clone statsd from Github: https://github.com/etsy/statsd npm install statsd-librato-backend /statsd/install 12 Thursday, November 8, 12 Install Node.js through: homebrew, aptitude, Windows installer cd into statsd directory to npm install
www.easybib.com @klimpong { port: statsd_port, mgmt_address: '127.0.0.1', backends: ['statsd-librato-backend'], librato: { email: 'email_on_librato', token: 'librato_token', source: 'where_metrics_are_coming_from' } } /statsd/configure 13 Thursday, November 8, 12 Watch me type! The minimum is email and token. port: port of the statsd process librato.email/.token: credentials from librato librato.source: e.g. your cluster (application, whatever)
www.easybib.com @klimpong Find a PHP client library. /statsd/now-what 15 Thursday, November 8, 12 StatsD has examples for half a dozen languages. Want something more sophisticated?
www.easybib.com @klimpong /librato 17 Thursday, November 8, 12 This is an excerpt of stuff we collect. And every time there’s a problem, we add to it. https://metrics.librato.com/pricing 50 metrics every 60 seconds = ~5.00 USD/month flush every 30 = ~8.50 USD a month