package metrics-influx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val encode_line_protocol : Metrics.tags -> Metrics.data -> string -> string
val lwt_reporter : ?tags:Metrics.tags -> ?interval:int -> (string -> unit Lwt.t) -> (unit -> int64) -> Metrics.reporter

lwt_reporter ~tags ~interval send clock is a metrics reporter that encodes a measurement in influxdb line protocol and reports it via send. A measurement can be prefixed by an optional list of tags. If ~interval is specified and a positive amount of milliseconds, each source measurement is reported only once within this interval.

OCaml

Innovation. Community. Security.