This protocol is used to extract the metric information from the registry.
This protocol is used to extract the metric information from the registry.
(registry t)
Returns the ^CollectorRegistry t
.
Returns the `^CollectorRegistry t`.
(write-out t out)
Writes the ^CollectorRegistry t
to ^java.io.Writer out
.
Writes the `^CollectorRegistry t` to `^java.io.Writer out`.
(write-str t)
Writes the ^CollectorRegistry t
to a java.io.StringWriter
and
returns the String result.
Writes the `^CollectorRegistry t` to a `java.io.StringWriter` and returns the String result.
This protocol is used to extend the CollectorRegistry
.
This is done to ultimately ensure thread safety and to dynamically
register collections. The prometheus java client currently only
lets you register new collections, existing collections will throw
an IllegalArgumentException
This protocol is used to extend the `CollectorRegistry`. This is done to ultimately ensure thread safety and to dynamically register collections. The prometheus java client currently only lets you register new collections, existing collections will throw an `IllegalArgumentException`
(nc-lock t)
Retrieve the nameCollectorsLock
lock Object
Retrieve the `nameCollectorsLock` lock Object
(nc-map t)
Retrieve the namesToCollectors
map
Retrieve the `namesToCollectors` map
(register-dynamically t metric)
This will try and register a new collection if it doesn't or return an existing collection by doing the following:
nameCollectorsLock
namesToCollectors
using :metric/name
This will try and register a new collection if it doesn't or return an existing collection by doing the following: - syncronize a lock on `nameCollectorsLock` - get collection from `namesToCollectors` using `:metric/name` - if collection exists return - else register new collection and return
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close