Liking cljdoc? Tell your friends :D

clometheus-pushgateway.core


start-pushgateway-reporter!clj

(start-pushgateway-reporter! host-name
                             job-name
                             &
                             {interval-ms :interval-ms
                              registry :registry
                              :or {interval-ms 15000
                                   registry c/default-registry}})

Pushes metrics once and then schedules a job to do it regularly. Metrics are pushed a last time on shutdown, so no updates are lost. Returns a scheduled-fn in case the client wants to cancel it later on. Example usage:

(start-pushgateway-reporter! "my-host.my-org.com" "my-batch-job-name")
Pushes metrics once and then schedules a job to do it regularly.
Metrics are pushed a last time on shutdown, so no updates are lost.
Returns a scheduled-fn in case the client wants to cancel it later on.
Example usage:
```clojure
(start-pushgateway-reporter! "my-host.my-org.com" "my-batch-job-name")
```
sourceraw docstring

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

× close