Liking cljdoc? Tell your friends :D

influx-reporter

Build Status Clojars Project

A metrics to influxdb reporter, that supports customizing how and what fields of metric to collect.

Usage

(require '[influnx-reporter.reporter :as rep])

(def reg (MetricRegistry.))

(def my-influx {:url "http://127.0.0.1:8086/"
                :db "reporter"})

(defn- my-histogram-resolver [histogram]
  {:p98 (.get98thPercentile histogram)})

(def my-reporter
  (reporter :registry reg
            :influx-spec my-influx
            :histogram-resolver my-histogram-resolver
            :default-tags {:host "air.local"}))

;; report to influxdb every 5 mins
(rep/start my-reporter 300)

Features not supported yet

  • No http auth for InfluxDB
  • No https for InfluxDB

License

Copyright © 2018 Juvenn Woo

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

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

× close