(defgauge s x & opts)
Defines a new gauge metric using the symbol as the name. For simplicity, all dashes are translated into dots (idiomatic)
Defines a new gauge metric using the symbol as the name. For simplicity, all dashes are translated into dots (idiomatic)
Defines a new gauge (a value that may go up or down) to a single registry, or return an existing counter in that registry. The returned gauge will be unique for each registry, but each registry is guaranteed to only create one gauge for the same combination of name and tags.
ex. (gauge "pool.size" (some-fn) :tags {:name "work"})
Defines a new gauge (a value that may go up or down) to a single registry, or return an existing counter in that registry. The returned gauge will be unique for each registry, but each registry is guaranteed to only create one gauge for the same combination of name and tags. ex. (gauge "pool.size" (some-fn) :tags {:name "work"})
(mk-gauge builder
{:keys [tags description unit strong registry]
:or {registry default-registry}})
(mk-gauge n f opts)
(mk-gauge n obj f opts)
Defines a new gauge
Defines a new gauge
(value g)
The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.
The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close