Liking cljdoc? Tell your friends :D

metrics.gauges


defgaugecljmacro

(defgauge title f)
(defgauge reg title f)

Define a new Gauge metric with the given title and a function. to call to retrieve the value of the Gauge.

The title uses some basic desugaring to let you concisely define metrics:

; Define a gauge titled "default.default.foo" into var foo (defgauge foo ,,,) (defgauge "foo" ,,,)

; Define a gauge titled "a.b.c" into var c (defgauge [a b c] ,,,) (defgauge ["a" "b" "c"] ,,,) (defgauge [a "b" c] ,,,)

Define a new Gauge metric with the given title and a function.
 to call to retrieve the value of the Gauge.

The title uses some basic desugaring to let you concisely define metrics:

  ; Define a gauge titled "default.default.foo" into var foo
  (defgauge foo ,,,)
  (defgauge "foo" ,,,)

  ; Define a gauge titled "a.b.c" into var c
  (defgauge [a b c] ,,,)
  (defgauge ["a" "b" "c"] ,,,)
  (defgauge [a "b" c] ,,,)
sourceraw docstring

gaugeclj

(gauge title)
(gauge reg title)

Retrieve an existing gauge from the provided registry (or the default registry) from its name. Returns nil when not found.

Retrieve an existing gauge from the provided registry (or the
default registry) from its name. Returns nil when not found.
sourceraw docstring

gauge-fnclj

(gauge-fn title f)
(gauge-fn reg title f)

Create a new Gauge metric with the given title.

The given function will be called (with no arguments) to retrieve the value of the Gauge when requested.

Create a new Gauge metric with the given title.

The given function will be called (with no arguments) to retrieve the value of
the Gauge when requested.
sourceraw docstring

valueclj

(value g)

Return the value of the given Gauge.

Return the value of the given Gauge.
sourceraw docstring

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

× close