package prometheus-app

  1. Overview
  2. Docs
Client library for Prometheus monitoring

Install

Dune Dependency

Authors

Maintainers

Sources

prometheus-1.2.tbz
sha256=83643a029a6b6de71d14034eee2e94feff1d08755c4a41d583dc1530ab555bcb
sha512=bbec7f0728b850b991ec50e76ef2c999341a9469ceaa11b68180f060150c4fe62f3dca87c13914ac331b3d7ef6e46256ae11466b607ecb60d00b8f284cab86b9

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.

Sourcemodule Logging : sig ... end

Report metrics for messages logged.

OCaml

Innovation. Community. Security.