prometheus-appversion Documentation on ocaml.org

Client library for Prometheus monitoring

Applications can enable metric reporting using the prometheus-app opam package. This depends on cohttp and can serve the metrics collected above over HTTP.

The prometheus-app.unix ocamlfind library provides the Prometheus_unix module, which includes a cmdliner option and pre-configured web-server. See the examples/example.ml program for an example, which can be run as:

$ dune exec -- examples/example.exe --listen-prometheus=9090
If run with the option --listen-prometheus=9090, this program serves metrics at
http://localhost:9090/metrics
Tick!
Tick!
...

Unikernels can use Prometheus_app instead of Prometheus_unix to avoid the Unix dependency.

AuthorsThomas Leonard and David Scott
LicenseApache-2.0
Published
Homepagehttps://github.com/mirage/prometheus
Issue Trackerhttps://github.com/mirage/prometheus/issues
Documentationhttps://mirage.github.io/prometheus/
Maintainertalex5@gmail.com
Dependencies
Source [http] https://github.com/mirage/prometheus/releases/download/v1.4/prometheus-1.4.tbz
sha256=e63ea943ccf903ca49238ba28bd963c3e5358f4f22466dd3749da830f0ec2d31
sha512=d7bbaf2fea7334c42e2981ed1ed939966e121865d2e89d42c323cb0f6054b06becfcb012c2342fa73c2eb6e181e52670caf3601be08f1e51809fbda92ea928e5
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/prometheus-app/prometheus-app.1.4/opam