A fully functioning monitoring component for Duckula.
Only useful if you're using Duckula :wink:
(def system
{;; see Caliban docs for more info
:exception-tracker (caliban.tracker/create {:token "rollbar-token"
:environment "production"})
;; see Stature docs for more info
:statsd (stature.metrics/create {:host "localhost" :port 8125 :prefix "duckula-test"})
;; put it all together
:monitoring (component/using
(duckula.monitoring/create {:name "my-api"})
[:statsd :exception-tracker])
;; sets up the web request handler
;; ring-compatible web server component must be provided by you
:ring-handler (component/using
(duckula.handler/create handler-config)
[:monitoring ; defined above
:db :publisher :elasticsearch])
;; ----
;; rest of your dependencies and the component system
:publisher (bunnicula.publisher/create rmq-config)
:db (...)
:elasticsearch (...)
})
None at the moment
In alphabetical order
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close