A set of things necessary for Telemere-to-Axiom.co integration.
Defines and operates through a configurable signal handler that prepares signals and periodically sends them in batches to the Ingest API.
Have com.taoensso/telemere
on your classpath. The minimum supported version of Telemere is 1.0.0-RC1
.
Add com.github.marksto/telemere.axiom
to your project dependencies.
(require '[marksto.telemere.axiom :as mta])
(require '[taoensso.telemere :as tel])
(def handler-opts
{:conn-opts {:api-token <AXIOM_API_TOKEN>
:dataset <AXIOM_DATASET>}})
(def handler-fn (mta/handler:axiom handler-opts))
(tel/add-handler! :axiom handler-fn)
; or
(tel/add-handler! :axiom handler-fn <dispatch-opts>)
Here <AXIOM_API_TOKEN>
and <AXIOM_DATASET>
are the values you configured in Axiom. For more details, see the Axiom Settings documentation.
Please see the docstring of the handler:axiom
function.
Licensed under EPL 1.0 (same as Clojure).