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

Description

Published: 19 Jun 2025

README

Metrics -- Metrics infrastructure for OCaml

Metrics provides a basic infrastructure to monitor and gather runtime metrics for OCaml program. Monitoring is performed on sources, indexed by tags, allowing users to enable or disable at runtime the gathering of data-points. As disabled metric sources have a low runtime cost (only a closure allocation), the library is designed to instrument production systems.

Metric reporting is decoupled from monitoring and is handled by a custom reporter. A few reporters are (will be) provided by default.

Metrics is heavily inspired by Logs.

Installation

Metrics can be installed with opam:

opam install metrics

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation and API reference is automatically generated by odoc from the interfaces. It can be consulted online.

Dependencies (6)

  1. lwt >= "2.4.7"
  2. duration
  3. fmt >= "0.8.7"
  4. metrics = version
  5. dune >= "1.4"
  6. ocaml >= "4.05.0"

Dev Dependencies

None

Conflicts

None

OCaml

Innovation. Community. Security.