package tiny_httpd

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tiny_httpd_prometheus.RegistrySource

Registry for metrics.

Sourcetype t

The registry contains a group of metrics

Sourceval create : unit -> t
Sourceval on_will_emit : t -> (unit -> unit) -> unit

on_will_emit registry f calls f() every time emit buf registry is called (before the metrics start being emitted). This is useful to update some metrics on demand.

Sourceval emit : Buffer.t -> t -> unit

Write metrics into the given buffer. The buffer will be cleared first thing.

Sourceval emit_str : t -> string
OCaml

Innovation. Community. Security.