prometheus-app
Client library for Prometheus monitoring
Description
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.
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Published
- 09 Jun 2021
- Authors
- Maintainers
Sources
prometheus-v1.1.tbz
sha256=fbcf8bb28c02bfe4f61d2494bc2b70fdedd62f2b41fd1343e6f73d583bf599e4
sha512=9cf49689f6d33138cf41eca585e0d15bd17f670a3334b8235a52cc6c210fdc763fb967b19a91a110759a206aa9223cca1c7064e0eb2e2e6d3d13957ec7a38201
Dependencies
logs
>= "0.6.0"
alcotest
with-test
lwt
>= "2.5.0"
cohttp
>= "1.0.0"
re
>= "1.8.0"
prometheus
= version
dune
>= "1.0"
ocaml
>= "4.02.3"
Reverse Dependencies
current
>= "0.4" & < "0.6.2"
current_examples
>= "0.4" & < "0.6.2"
current_web
< "0.6.2"
datakit
>= "0.9.0"
ocluster
< "0.2"
tezos-node
= "13.0"