package prom
-
prom.cfg
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module KLL : sig ... end
type histogram = int FMap.t complex
cumulate hist
is the cumulative histogram of hist
, suitable to ingestion by Prometheus.
val complex_cum_fmap : int -> float -> int FMap.t -> 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_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.
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.
val name : t -> string
val help : t -> string option
add_labels labels t
will add labels
to all series in t
.
val pp : t Fmt.t
val pp_list : t list Fmt.t