package prometheus-app

  1. Overview
  2. Docs
Client library for Prometheus monitoring

Install

dune-project
 Dependency

Authors

Maintainers

Sources

prometheus-1.3.tbz
sha256=e02d14cf068282ab64e5218863cf6b83477176b2a6eb796175c39a4006b6d0bf
sha512=d7b5d6e36b0ad1cc520467783d932b6638d19b064841566170fb4bf95ac69d07c4723199e21bbfee9d0c1cb81e3c5e5f33d5d6975f7c5820b8ab026af0ab22f5

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.