A tiny clojure library that reports datomic metrics to statsd. This is heavily inspired by Appcanary 's datomic-statsd-reporter and Tom Crayford 's datomic-riemann-reporter.
Download uberjar from Clojars
- Direct Link to download jars
-
Drop an uberjar in $DATOMIC_DIR/lib
-
add below to your transactor's
properties
file:-
metrics-callback=fr33m0nk.datomic-datadog-reporter/send-metrics
-
-
you need to set these three environment variables:
- DATADOG_HOST=your_datadog_agent_host (default:
127.0.0.1
) - DATADOG_PORT=your_datadog_agent_port (default:
8125
) - DATADOG_PREFIX=your_datadog_metric-prefix (default:
datomic
)
- DATADOG_HOST=your_datadog_agent_host (default:
-
Start/restart your transactor, and you'll see events showing up in DataDog.
-
All events will start with prefix provided (default
datomic.
) -
Event names come from the metrics available here.
Copyright © 2022 Prashant Sinha Distributed under the Eclipse Public License version 1.0.