Returns the cumulative count since this counter was created.
Returns the cumulative count since this counter was created.
(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"})
(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).
Updates the counter by amount or 1.0 if not specified.
Updates the counter by amount or 1.0 if not specified.
(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
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |