Liking cljdoc? Tell your friends :D

blocks.meter

Instrumentation for block stores to measure data flows, call latencies, and other metrics.

The logic in this namespace is built around the notion of a metric event and an associated recording function on the store which the events are passed to. Each event has at least a namespaced :type keyword, a :label associated with the store, and a numeric :value.

Events may contain other information like the block id or method name as well, and it is up to the receiver to interpret them.

Instrumentation for block stores to measure data flows, call latencies, and
other metrics.

The logic in this namespace is built around the notion of a _metric event_ and
an associated _recording function_ on the store which the events are passed
to. Each event has at least a namespaced `:type` keyword, a `:label`
associated with the store, and a numeric `:value`.

Events may contain other information like the block id or method name as
well, and it is up to the receiver to interpret them.
raw docstring

*io-report-period*clj

Record incremental IO metrics every N seconds.

Record incremental IO metrics every N seconds.
sourceraw docstring

measure-methodcljmacro

(measure-method store method-kw attrs & body)

Measure the end-to-end elapsed time for a block store method. Returns the result of calling body-fn after measurement if the store has metering enabled.

Measure the end-to-end elapsed time for a block store method. Returns the
result of calling `body-fn` after measurement if the store has metering
enabled.
sourceraw docstring

measure-method*clj

(measure-method* store method-kw attrs body-fn)

Internal helper for measure-method.

Internal helper for `measure-method`.
sourceraw docstring

metered-blockclj

(metered-block store metric-type block)

Wrap the block with a lazy constructor for a metered input stream which will report metrics for the given type. If the store does not have a recorder, the block will be returned unchanged.

Wrap the block with a lazy constructor for a metered input stream which will
report metrics for the given type. If the store does not have a recorder, the
block will be returned unchanged.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close