package metrics-influx

  1. Overview
  2. Docs
Influx reporter for the Metrics library

Install

Dune Dependency

Authors

Maintainers

Sources

metrics-0.5.0.tbz
sha256=df356380909d06461bcd097ef6063ca9f3c51365f476a797c03664b53c05715d
sha512=06e0aef8ba7a09a350cbf7219822c01047afcc9cd2870ca153040e1232d2b8560882ae6823e7797f061fa0b34da750d88365c8817cd025715b2e891320d77c19

doc/metrics-influx/Metrics_influx/index.html

Module Metrics_influxSource

Sourceval encode_line_protocol : Metrics.tags -> Metrics.data -> string -> string

encode_line_protocol tags data name encodes the tags and data to the influx line protocol, using name as measurement.

Sourceval 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.