← All repos

metrics

Infrastructure to collect metrics from OCaml applications.

Browse cluster: OCaml Systems and Utilities
169commits
6contributors
4languages

Tech stack & purpose

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.

Languages

OCaml
94.8%
C
5.0%
Makefile
0.1%
Dune
0.1%

Contributors