Liking cljdoc? Tell your friends :D

iapetos.export


push!clj

(push! registry)

Push all metrics of the given registry.

Push all metrics of the given registry.
sourceraw docstring

push-registry!clj

(push-registry! registry {:keys [push-gateway job grouping-key]})

Directly push all metrics of the given registry to the given push gateway. This can be used if you don't have control over registry creation, otherwise pushable-collector-registry and push! are recommended.

Directly push all metrics of the given registry to the given push gateway.
This can be used if you don't have control over registry creation, otherwise
[[pushable-collector-registry]] and [[push!]] are recommended.
sourceraw docstring

pushable-collector-registryclj

(pushable-collector-registry {:keys [job registry push-gateway grouping-key]})

Create a fresh iapetos collector registry whose metrics can be pushed to the specified gateway using push!.

Alternatively, by supplying :registry, an existing one can be wrapped to be pushable, e.g. the [[default-registry]].

Create a fresh iapetos collector registry whose metrics can be pushed to the
specified gateway using [[push!]].

Alternatively, by supplying `:registry`, an existing one can be wrapped to be
pushable, e.g. the [[default-registry]].
sourceraw docstring

text-formatclj

(text-format registry)

Dump the given registry using the Prometheus text format (version 0.0.4).

Dump the given registry using the Prometheus text format (version 0.0.4).
sourceraw docstring

with-pushcljmacro

(with-push registry & body)

Use the given pushable-collector-registry to push metrics after the given block of code has run successfully.

Use the given [[pushable-collector-registry]] to push metrics after the given
block of code has run successfully.
sourceraw docstring

with-push-gatewaycljmacro

(with-push-gateway [binding options] & body)

Create a pushable-collector-registry, run the given block of code, then push all collected metrics.

(with-push-gateway [registry {:job "my-job", :push-gateway "0:8080"}]
  ...)
Create a [[pushable-collector-registry]], run the given block of code, then
push all collected metrics.

```
(with-push-gateway [registry {:job "my-job", :push-gateway "0:8080"}]
  ...)
```
sourceraw docstring

write-text-format!clj

(write-text-format! w registry)

Dump the given registry to the given writer using the Prometheus text format (version 0.0.4).

Dump the given registry to the given writer using the Prometheus text format
(version 0.0.4).
sourceraw docstring

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

× close