package prom
Library
Module
Module type
Parameter
Class
Class type
module SMap : Containers.Map.S with type key := string
module FSet : Containers.Set.S with type elt := float
module FMap : Containers.Map.S with type key := float
module KLL : sig ... end
cumulate hist
is the cumulative histogram of hist
, suitable to ingestion by Prometheus.
complex_cum count sum data
is a complex
value constructed from count
, sum
and data
where data
is a cumulated histogram or CDF.
val complex_cum : int -> float -> (float * int) list -> histogram
complex_cum count sum data
is a complex
value constructed from count
, sum
and data
where data
is a cumulated histogram or CDF.
val complex : int -> float -> (float * int) list -> histogram
complex count sum data
is a complex
value constructed from count
, sum
and data
where data
is a non-cumulated histogram.
module LabelsMap : Containers.Map.S with type key := string SMap.t
A kv map (label) uniquely identifying a time series.
type 'a metric = 'a series LabelsMap.t
Type of a metric. A metric associates a time series to a set of labels.
Type of a time series. Contains an optional timestamp.
Type of a Prometheus metric. Contains a name, an optional help text, a type, and labels associated to a value.
add_labels labels t
will add labels
to all series in t
.