Liking cljdoc? Tell your friends :D

prometheus.alpha


Clearcljprotocol

clear-clj

(clear- x)
source

clear!clj

(clear! x)

Clears all metrics of the collector. After calling clear! captured labeled instances are detached.

Clears all metrics of the collector. After calling clear! captured labeled
instances are detached.
sourceraw docstring

collectorclj

(collector x)
(collector x label)
(collector x label-1 label-2)
(collector x label-1 label-2 label-3)
(collector x label-1 label-2 label-3 & labels)

Coerce to collector.

Coerce to collector.
sourceraw docstring

collector-fncljmacro

(collector-fn n)

Generates the collector- function for SimpleCollector with a max arity of n.

Generates the collector- function for SimpleCollector with a max arity of n.
sourceraw docstring

collector?clj

(collector? x)
source

counter?clj

(counter? x)
source

create-counterclj

(create-counter name help & more)
source

create-gaugeclj

(create-gauge name help & more)
source

create-histogramclj

(create-histogram name help & more)
source

Deccljprotocol

dec-clj

(dec- x amount)
source

dec!clj

(dec! gauge & labels-and-amount)

Decrements a gauge by the given amount or 1.

Decrements a gauge by the given amount or 1.
sourceraw docstring

defcountercljmacro

(defcounter name help attr-map? & label-names)

Defines a counter as var with name.

Metrics are required to have a name and a help text. An optional :namespace and :subsystem can be defined via attr-map. The metrics name can be overridden by :name in attr-map. Per default, the var name is used with dashes replaced by underscores. The full name of the metric is namespace_subsystem_name and has to conform to /[a-zA-Z_:][a-zA-Z0-9_:]*/.

Labels are used to provide dimensions to metrics. For example: a counter defined with two labels has two dimensions for which you have to supply values when incrementing.

Counters have to be registered in a CollectorRegistry in order to be available for dump-metrics.

Defines a counter as var with `name`.

Metrics are required to have a name and a help text. An optional :namespace and
:subsystem can be defined via `attr-map`. The metrics name can be overridden by
:name in `attr-map`. Per default, the var name is used with dashes replaced by
underscores. The full name of the metric is `namespace_subsystem_name` and has
to conform to `/[a-zA-Z_:][a-zA-Z0-9_:]*/`.

Labels are used to provide dimensions to metrics. For example: a counter
defined with two labels has two dimensions for which you have to supply values
when incrementing.

Counters have to be registered in a `CollectorRegistry` in order to be
available for `dump-metrics`.
sourceraw docstring

defgaugecljmacro

(defgauge name help attr-map? & label-names)

Defines a gauge as var with name.

Metrics are required to have a name and a help text. An optional :namespace and :subsystem can be defined via attr-map. The metrics name can be overridden by :name in attr-map. Per default the var name is used with dashes replaced by underscores. The full name of the metric is namespace_subsystem_name and has to conform to /[a-zA-Z_:][a-zA-Z0-9_:]*/.

Labels are used to provide dimensions to metrics. For example: a gauge defined with two labels has two dimensions for which you have to supply values when incrementing.

Gauges have to be registered in a CollectorRegistry in order to be available for dump-metrics.

Defines a gauge as var with `name`.

Metrics are required to have a name and a help text. An optional :namespace and
:subsystem can be defined via `attr-map`. The metrics name can be overridden by
:name in `attr-map`. Per default the var name is used with dashes replaced by
underscores. The full name of the metric is `namespace_subsystem_name` and has
to conform to `/[a-zA-Z_:][a-zA-Z0-9_:]*/`.

Labels are used to provide dimensions to metrics. For example: a gauge
defined with two labels has two dimensions for which you have to supply values
when incrementing.

Gauges have to be registered in a `CollectorRegistry` in order to be available
for `dump-metrics`.
sourceraw docstring

defhistogramcljmacro

(defhistogram name help attr-map? buckets & label-names)

Defines a histogram as var with name.

Metrics are required to have a name and a help text. An optional :namespace and :subsystem can be defined via attr-map. The metrics name can be overridden by :name in attr-map. Per default the var name is used with dashes replaced by underscores. The full name of the metric is namespace_subsystem_name and has to conform to /[a-zA-Z_:][a-zA-Z0-9_:]*/.

Buckets is a collection of upper bounds of buckets for the histogram.

Labels are used to provide dimensions to metrics. For example: a histogram defined with two labels has two dimensions for which you have to supply values when incrementing.

Histograms have to be registered in a CollectorRegistry in order to be available for dump-metrics.

Defines a histogram as var with `name`.

Metrics are required to have a name and a help text. An optional :namespace and
:subsystem can be defined via `attr-map`. The metrics name can be overridden by
:name in `attr-map`. Per default the var name is used with dashes replaced by
underscores. The full name of the metric is `namespace_subsystem_name` and has
to conform to `/[a-zA-Z_:][a-zA-Z0-9_:]*/`.

Buckets is a collection of upper bounds of buckets for the histogram.

Labels are used to provide dimensions to metrics. For example: a histogram
defined with two labels has two dimensions for which you have to supply values
when incrementing.

Histograms have to be registered in a `CollectorRegistry` in order to be
available for `dump-metrics`.
sourceraw docstring

dump-metricsclj

(dump-metrics)
(dump-metrics registry)

Dumps metrics of the given or default registry using simple client's text format.

Dumps metrics of the given or default registry using simple client's text
format.
sourceraw docstring

extend-protocol-deccljmacro

(extend-protocol-dec & classes)
source

extend-protocol-getcljmacro

(extend-protocol-get & classes)
source

extend-protocol-inccljmacro

(extend-protocol-inc & classes)
source

extend-protocol-observecljmacro

(extend-protocol-observe & classes)
source

extend-protocol-setcljmacro

(extend-protocol-set & classes)
source

extend-protocol-start-timercljmacro

(extend-protocol-start-timer & classes)
source

extend-protocol-timercljmacro

(extend-protocol-timer & classes)
source

gauge?clj

(gauge? x)
source

Getcljprotocol

get-clj

(get- x)
source

getclj

(get collector & labels)

Gets the current value of a counter, gauge, histogram or summary.

For a counter and a gauge the value is a double. For a histogram the value is a map containing a :histogram/sum and a :histogram/buckets value.

Gets the current value of a counter, gauge, histogram or summary.

For a counter and a gauge the value is a double. For a histogram the value is
a map containing a :histogram/sum and a :histogram/buckets value.
sourceraw docstring

histogram?clj

(histogram? x)
source

Inccljprotocol

inc-clj

(inc- x amount)
source

inc!clj

(inc! collector & labels-and-amount)

Increments a counter or gauge by the given amount or 1.

Increments a counter or gauge by the given amount or 1.
sourceraw docstring

Observecljprotocol

observe-clj

(observe- x amount)
source

observe!clj

(observe! collector & labels-and-amount)

Observes a given amount to a histogram or summary.

Observes a given amount to a histogram or summary.
sourceraw docstring

observe-duration!clj

(observe-duration! timer)

Observes the duration of a histogram or summary timer.

Observes the duration of a histogram or summary timer.
sourceraw docstring

Setcljprotocol

set-clj

(set- x amount)
source

set!clj

(set! gauge amount)
(set! gauge label amount)
(set! gauge & labels amount)

Sets a gauge to the given amount.

Sets a gauge to the given amount.
sourceraw docstring

StartTimercljprotocol

start-timer-clj

(start-timer- x)
source

summary?clj

(summary? x)
source

Timercljprotocol

observe-duration-clj

(observe-duration- x)
source

timerclj

(timer collector & labels)

Returns a timer of a gauge, histogram or summary.

The timer is closeable and observes the time at close. It can be used with with-open.

Returns a timer of a gauge, histogram or summary.

The timer is closeable and observes the time at close. It can be used with
with-open.
sourceraw docstring

timer?clj

(timer? x)

Returns true if x is a timer, else false.

Returns `true` if x is a timer, else `false`.
sourceraw docstring

ToCollectorcljprotocol

collector-clj

(collector- x)
(collector- x label)
(collector- x label-1 label-2)
(collector- x label-1 label-2 label-3)
(collector- x label-1 label-2 label-3 labels)
source

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

× close