Infrastructure to collect metrics from OCaml applications.
Browse cluster: OCaml Systems and Utilities →Metrics is an OCaml library that provides infrastructure for monitoring and collecting runtime metrics from OCaml applications. The system allows users to gather data points from metric sources indexed by tags, with the ability to enable or disable collection at runtime. Designed for production systems, disabled metric sources incur minimal overhead through closure allocation. Metric reporting is decoupled from monitoring and handled by custom reporters, with the library's design heavily inspired by the Logs library.