Liking cljdoc? Tell your friends :D

samsara.trackit.reporter-prometheus


prometheus-reporterclj

(prometheus-reporter
  reg
  {:keys [reporter-name push-gateway-url rate-unit duration-unit grouping-keys]
   :or {rate-unit TimeUnit/SECONDS duration-unit TimeUnit/MILLISECONDS}
   :as opts})
source

push-gatewayclj

(push-gateway push-gateway-url)
source

sanitize-grouping-keyclj

(sanitize-grouping-key k)

Prometheus does not like characters other than alpha-numeric and underscores. Replace every other character with _

Prometheus does not like characters other than alpha-numeric and
underscores. Replace every other character with _
sourceraw docstring

sanitize-grouping-keysclj

(sanitize-grouping-keys g)

sanitize the key and the value of the grouping key map to prometheus friendly values

sanitize the key and the value of the grouping key map to prometheus
friendly values
sourceraw docstring

start-reportingclj

(start-reporting registry
                 {:keys [reporting-frequency-seconds host port prefix rate-unit
                         duration-unit]
                  :or {reporting-frequency-seconds 10
                       rate-unit TimeUnit/SECONDS
                       duration-unit TimeUnit/MILLISECONDS}
                  :as cfg})
source

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

× close