package metrics

  1. Overview
  2. Docs
Metrics infrastructure for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

metrics-0.1.0.tbz
md5=bdc701d2cbe8ec6a172c56468279dc38

Description

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.

Published: 21 Oct 2018

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 (3)

  1. fmt >= "0.8.5"
  2. dune >= "1.4"
  3. ocaml >= "4.04.0" & < "5.0"

Dev Dependencies (1)

  1. alcotest with-test

Used by (11)

  1. caldav
  2. dns >= "4.4.0"
  3. dns-server >= "4.2.0"
  4. dns-stub
  5. index-bench
  6. metrics-lwt < "0.2.0"
  7. metrics-unix < "0.2.0"
  8. mirage-net-solo5 >= "0.6.2"
  9. mirage-solo5 >= "0.6.0"
  10. mirage-xen >= "8.0.2"
  11. tcpip >= "6.3.0"

Conflicts

None

OCaml

Innovation. Community. Security.