package metrics-influx

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

metrics-0.4.1.tbz
sha256=77e0c20fb5c1d06103dbb0ec0bc6045bee3c61c00ad0423c97852ac7f3c6144d
sha512=8da6e5666a9196f7c6aa77de034a1410e2dd89ee717ffd179ed480c7d4cd9f9e2088abefc05ba8b53a6668bc36ff4fd2d5af2e5a1b79ecd00e2ec35592591dbf

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.