package prometheus-app

  1. Overview
  2. Docs
Client library for Prometheus monitoring

Install

Dune Dependency

Authors

Maintainers

Sources

prometheus-v0.7.tbz
sha256=e2894de14ab9f9a095b1359581d84094123a1214f76e1563f7ce5a16c69c6ac5
sha512=6a4d81fef6514400ecf7e16a9871db0aba83a8cd52deaaaa3d07517ecbb460a638684326fc1087c4a57dfd830a609ae7486b69a9f77d07ab5e0eada663191228

doc/prometheus-app.unix/Prometheus_unix/index.html

Module Prometheus_unixSource

Report metrics for Prometheus. See: https://prometheus.io/

Notes:

  • This module is intended to be used by applications that export Prometheus metrics. Libraries should only link against the `Prometheus` module.
  • This module automatically initialises itself and registers some standard collectors relating to GC statistics, as recommended by Prometheus.
  • This extends Prometheus_app with support for cmdliner option parsing, a server pre-configured for Unix, and a start-time metric that uses Unix.gettimeofday.
Sourcetype config
Sourceval serve : config -> unit Lwt.t list

serve config starts a Cohttp server according to config. It returns a singleton list containing the thread to monitor, or an empty list if no server is configured.

opts is the extra command-line options to offer Prometheus monitoring.

OCaml

Innovation. Community. Security.