Liking cljdoc? Tell your friends :D

samsara.trackit.reporter-influxdb


influx-reporterclj

(influx-reporter reg
                 {:keys [host hostname port prefix tags fields auth
                         connect-timeout read-timeout group-guages duration-unit
                         measurement-mappings db-name excludes]
                  :as opts
                  :or {port 8086 db-name "metrics"}})
source

startclj

(start r seconds)

Report all metrics to influxdb periodically.

Report all metrics to influxdb periodically.
sourceraw docstring

start-reportingclj

(start-reporting registry
                 {:keys [reporting-frequency-seconds host port prefix rate-unit
                         duration-unit tags fields dbname auth connect-timeout
                         read-timeout]
                  :or {reporting-frequency-seconds 10
                       host "localhost"
                       port 8086
                       prefix "trackit"
                       rate-unit TimeUnit/SECONDS
                       duration-unit TimeUnit/MILLISECONDS}
                  :as cfg})
source

stopclj

(stop r)

Stops reporting.

Stops reporting.
sourceraw docstring

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

× close