A tiny clojure library that reports datomic metrics to statsd. This is heavily inspired by Tom Crayford's datomic-riemann-reporter.
Drop an uberjar in $DATOMIC_DIR/lib, then add this to your transactor's properties
file:
metrics-callback=datomic-statsd-reporter/report-datomic-metrics-to-statsd
Then you need to set these two environment variables:
STATSD_HOST=your_statsd_host
STATSD_PORT=port
If you don't set these variables, the defaults are port 8125 on 127.0.0.1.
Then restart your transactor, and you'll see events showing up in riemann. All events will be tagged "datomic", and start with "datomic". Event names come from the metrics available on http://docs.datomic.com/monitoring.html.
Copyright © 2015 Canary Computer Corporation
Distributed under the Apache License version 2.0