Liking cljdoc? Tell your friends :D

prometheus.alpha


Clearcljprotocol

clear-clj

(clear- x)

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.
raw 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.
raw 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.
raw docstring

collector?clj

(collector? x)

counter?clj

(counter? x)

create-counterclj

(create-counter name help & more)

create-gaugeclj

(create-gauge name help & more)

create-histogramclj

(create-histogram name help & more)

Deccljprotocol

dec-clj

(dec- x amount)

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.
raw 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`.
raw 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`.
raw 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`.
raw 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.
raw docstring

extend-protocol-deccljmacro

(extend-protocol-dec & classes)

extend-protocol-getcljmacro

(extend-protocol-get & classes)

extend-protocol-inccljmacro

(extend-protocol-inc & classes)

extend-protocol-observecljmacro

(extend-protocol-observe & classes)

extend-protocol-setcljmacro

(extend-protocol-set & classes)

extend-protocol-start-timercljmacro

(extend-protocol-start-timer & classes)

extend-protocol-timercljmacro

(extend-protocol-timer & classes)

gauge?clj

(gauge? x)

Getcljprotocol

get-clj

(get- x)

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.
raw docstring

histogram?clj

(histogram? x)

Inccljprotocol

inc-clj

(inc- x amount)

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.
raw docstring

Observecljprotocol

observe-clj

(observe- x amount)

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.
raw 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.
raw docstring

Setcljprotocol

set-clj

(set- x amount)

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.
raw docstring

StartTimercljprotocol

start-timer-clj

(start-timer- x)

summary?clj

(summary? x)

Timercljprotocol

observe-duration-clj

(observe-duration- x)

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.
raw docstring

timer?clj

(timer? x)

Returns true if x is a timer, else false.

Returns `true` if x is a timer, else `false`.
raw 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)

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

× close