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.
| Authors | Thomas Leonard and David Scott |
|---|---|
| License | Apache |
| Published | |
| Homepage | https://github.com/mirage/prometheus |
| Issue Tracker | https://github.com/mirage/prometheus/issues |
| Maintainer | talex5@gmail.com |
| Dependencies |
|
| Source [http] | https://github.com/mirage/prometheus/releases/download/v0.7/prometheus-v0.7.tbz sha256=e2894de14ab9f9a095b1359581d84094123a1214f76e1563f7ce5a16c69c6ac5 sha512=6a4d81fef6514400ecf7e16a9871db0aba83a8cd52deaaaa3d07517ecbb460a638684326fc1087c4a57dfd830a609ae7486b69a9f77d07ab5e0eada663191228 |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/prometheus-app/prometheus-app.0.7/opam |
Required by
- currentwith-test & <0.6.2
- current_web<0.6.2
- prometheus-liquidsoap


