package prometheus-app

  1. Overview
  2. Docs
Client library for Prometheus monitoring

Install

dune-project
 Dependency

Authors

Maintainers

Sources

prometheus-1.4.tbz
sha256=e63ea943ccf903ca49238ba28bd963c3e5358f4f22466dd3749da830f0ec2d31
sha512=d7bbaf2fea7334c42e2981ed1ed939966e121865d2e89d42c323cb0f6054b06becfcb012c2342fa73c2eb6e181e52670caf3601be08f1e51809fbda92ea928e5

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.