Liking cljdoc? Tell your friends :D

macrometer.counters


countcljmultimethod

Returns the cumulative count since this counter was created.

Returns the cumulative count since this counter was created.
raw docstring

counterclj

(counter n & opts)

Defines a new counter (a monotonically increasing value given a name n a sequence of tags) to a single registry, or return an existing counter in that registry. The returned counter will be unique for each registry, but each registry is guaranteed to only create one counter for the same combination of name and tags.

ex. (counter "http.request.count" :tags {:route "/api/users" :method "GET"})

Defines a new counter (a monotonically increasing value given a name n a sequence of tags) to a single registry,
or return an existing counter in that registry.
The returned counter will be unique for each registry, but each registry is guaranteed to only create
one counter for the same combination of name and tags.

ex. (counter "http.request.count" :tags {:route "/api/users" :method "GET"})
raw docstring

defcountercljmacro

(defcounter s & opts)

Defines a new counter metric using the symbol as the name. For simplicity, all dashes are translated into dots (idiomatic).

Defines a new counter metric using the symbol as the name.
For simplicity, all dashes are translated into dots (idiomatic).
raw docstring

incrementcljmultimethod

Updates the counter by amount or 1.0 if not specified.

Updates the counter by amount or 1.0 if not specified.
raw docstring

mk-counterclj

(mk-counter c)
(mk-counter {:keys [name tags description unit registry]
             :or {registry default-registry}}
            more-tags)

Defines a new counter

Defines a new counter
raw docstring

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

× close