Liking cljdoc? Tell your friends :D

samsara.trackit.reporter-prometheus


pidclj


prometheus-reporterclj

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

push-gatewayclj

(push-gateway push-gateway-url)

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 _
raw 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
raw 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})

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

× close