(make-riemann riemann-client)
(make-riemann host port)
(make-riemann host port batch-size)
(reporter riemann opts)
(reporter riemann
registry
{:keys [clock prefix rate-unit duration-unit filter ttl separator
host-name tags]
:as opts})
Create a reporter that forwards events to a Riemann instance.
riemann is either an instance of Riemann, as created by make-riemann, or an implementation of IRiemannClient. opts is a map with the following optional keys: :clock - Clock instance to use for time :prefix - String to prefix all metrics with :rate-unit - TimeUnit to convert rates to :duration-unit - TimeUnit to convert durations to :filter - MetricFilter for filtering reported metrics :ttl - Time to live for reported metrics :separator - Separator between metric name components :host-name - Override source host name :tags - collection of tags to attach to event
Create a reporter that forwards events to a Riemann instance. riemann is either an instance of Riemann, as created by make-riemann, or an implementation of IRiemannClient. opts is a map with the following optional keys: :clock - Clock instance to use for time :prefix - String to prefix all metrics with :rate-unit - TimeUnit to convert rates to :duration-unit - TimeUnit to convert durations to :filter - MetricFilter for filtering reported metrics :ttl - Time to live for reported metrics :separator - Separator between metric name components :host-name - Override source host name :tags - collection of tags to attach to event
(start r seconds)
(start r period time-unit)
(stop r)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close