Liking cljdoc? Tell your friends :D

com.brunobonacci.mulog.publishers.prometheus


create-defaultclj

(create-default)
source

prometheus-publisherclj

(prometheus-publisher config)
source

ReadRegistrycljprotocol

This protocol is used to extract the metric information from the registry.

This protocol is used to extract the metric information from the
registry.

registryclj

(registry t)

Returns the ^CollectorRegistry t.

Returns the `^CollectorRegistry t`.

write-outclj

(write-out t out)

Writes the ^CollectorRegistry t to ^java.io.Writer out.

Writes the `^CollectorRegistry t` to `^java.io.Writer out`.

write-strclj

(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.
sourceraw docstring

Registrycljprotocol

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-lockclj

(nc-lock t)

Retrieve the nameCollectorsLock lock Object

Retrieve the `nameCollectorsLock` lock Object

nc-mapclj

(nc-map t)

Retrieve the namesToCollectors map

Retrieve the `namesToCollectors` map

register-dynamicallyclj

(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:

  • syncronize a lock on nameCollectorsLock
  • get collection from namesToCollectors using :metric/name
  • if collection exists return
  • else register new collection and return
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
sourceraw docstring

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

× close