package metrics-mirage

  1. Overview
  2. Docs
Mirage backend for the Metrics library

Install

Dune Dependency

Authors

Maintainers

Sources

metrics-v0.3.0.tbz
sha256=49e917c8c4500ff04723c6845d3c726fe340bfc8724430702a5ce5026dfc50b1
sha512=eb14762a34b78d5b27ac4b312815a6b5aaaf8316eb458bfd9685f60feefa924fdb09ee39b7d4b4007bf49deb7e4eb0eb80464ba86a7feeaaed30f58f9dce432c

Description

Published: 04 Jun 2021

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

  1. logs
  2. cstruct
  3. mirage-stack >= "2.0.0"
  4. mirage-clock >= "3.0.0"
  5. lwt
  6. ipaddr
  7. metrics-influx = version
  8. metrics = version
  9. dune >= "1.4"
  10. ocaml >= "4.05.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.