Skip to content

Instantly share code, notes, and snippets.

@spolu
Created July 10, 2012 23:00
Show Gist options
  • Save spolu/3086787 to your computer and use it in GitHub Desktop.
Save spolu/3086787 to your computer and use it in GitHub Desktop.
DaTtSs client library
var foo = require('dattss').process({ name: 'foo',
auth: '__YOUR_AUTH_KEY__' });
/* DaTtSs lets you aggregate 3 types of statistics */
foo.agg('new', '1c'); // counters (evolves incrementally)
foo.agg('query', '153ms'); // timers (time it takes to do smthg)
foo.agg('users', '23g'); // gauges (snapshot of a value)
/* It's also possible to emphasize a statistic */
foo.agg('signup', '1c!'); // emphasized counter
/* The `error` counter is detected and displayed in red */
foo.agg('error', '1c'); // error counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment