Metrics
Log site usage metrics to statsd. Provides a Clock-specific wrapper around Lynx.
When logging metrics be sure to follow the naming conventions outlined in the Statsd Metric Naming Conventions document.
Usage
var Metrics = metrics = '127.0.0.1' 8325 client: 'nuk' platform: 'sunperks' application: 'site' environment: 'production'
Timers
var timer = metrics
Counters
metrics
There is no need to create a counter if a timer for the same action already exists. Statsd will automatically create a counter for every timer.
The final argument of a counter should always be a past-tense verb, e.g.:
- succeeded
- failed