full.metrics

June 24, 2016 ยท View on GitHub

Clojars Project Build Status

Clojure application metrics and monitoring sugar.

Configuration

full.metrics reports to Riemann. T

riemann:
  host: metrics.yourhost.com
  protocol: udp
  tags: [service-name]

Examples:

To measure an execution time of an async method:

(defn foo> []
  (go-try-timeit "foo.bar.metric"
    (<! (async-things))))

To see these metrics in Riemann, you can then use the following

tagged "service-name"
and service =~ "%0.95"
and host = nil

There's thread-try-timeit for wrapping full.async/thread-try requests.