Liking cljdoc? Tell your friends :D

monkey.ci.prometheus

Functionality to export metrics to prometheus format, or push them to a pushgateway. Originally we used micrometer-clj, but it's really old and incompatible with recent versions of the Prometheus libs. Since we're fixed on Prometheus (for now), it's not necessary to maintain all the other formats, so the micrometer layer was essentially ballast. This namespace accesses the Prometheus code directly.

Functionality to export metrics to prometheus format, or push them to a pushgateway.
Originally we used `micrometer-clj`, but it's really old and incompatible with recent
versions of the Prometheus libs.  Since we're fixed on Prometheus (for now), it's not
necessary to maintain all the other formats, so the micrometer layer was essentially
ballast.  This namespace accesses the Prometheus code directly.
raw docstring

counter-getclj

(counter-get c & [label-vals])
source

counter-incclj

(counter-inc c v & [label-vals])
source

gauge-decclj

(gauge-dec g & [n])
source

gauge-getclj

(gauge-get g)
source

gauge-incclj

(gauge-inc g & [n])
source

gauge-setclj

(gauge-set g v)
source

make-counterclj

(make-counter name reg & [opts])
source

make-gaugeclj

(make-gauge name reg & [opts])
source

make-registryclj

(make-registry)

Creates a new prometheus registry

Creates a new prometheus registry
sourceraw docstring

pushclj

(push gw)

Pushes all registered datapoints to the push gateway

Pushes all registered datapoints to the push gateway
sourceraw docstring

push-gwclj

(push-gw host port reg job)

Creates a PushGateway object to push metrics to

Creates a PushGateway object to push metrics to
sourceraw docstring

scrapeclj

(scrape reg)

Returns metrics formatted to Prometheus scrape format as a string.

Returns metrics formatted to Prometheus scrape format as a string.
sourceraw docstring

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

× close