Module Prom
module SMap : Stdlib.Map.S with type SMap.key := stringmodule FSet : Stdlib.Set.S with type FSet.elt := floatmodule FMap : Stdlib.Map.S with type FMap.key := floatmodule KLL : Prom__.Kll.S with type elt := floattype 'a complex={count : int;sum : float;data : 'a;}type histogram= int FMap.t complextype summary= (KLL.t * FSet.t) complex
val cumulate : int FMap.t -> int FMap.tcumulate histis the cumulative histogram ofhist, suitable to ingestion by Prometheus.
val complex_cum_fmap : int -> float -> int FMap.t -> histogramcomplex_cum count sum datais acomplexvalue constructed fromcount,sumanddatawheredatais a cumulated histogram or CDF.
val complex_cum : int -> float -> (float * int) list -> histogramcomplex_cum count sum datais acomplexvalue constructed fromcount,sumanddatawheredatais a cumulated histogram or CDF.
val complex : int -> float -> (float * int) list -> histogramcomplex count sum datais acomplexvalue constructed fromcount,sumanddatawheredatais a non-cumulated histogram.
module LabelsMap : Stdlib.Map.S with type LabelsMap.key := string SMap.tA kv map (label) uniquely identifying a time series.
type 'a metric= 'a series LabelsMap.tType of a metric. A metric associates a time series to a set of labels.
val create_series : ?ts:Ptime.t -> 'a -> 'a series
type tType of a Prometheus metric. Contains a name, an optional help text, a type, and labels associated to a value.
val name : t -> stringval help : t -> string optionval add_labels : (string * string) list -> t -> tadd_labels labels twill addlabelsto all series int.
val merge : t -> t -> tval pp : t Fmt.tval pp_list : t list Fmt.tval counter : ?help:string -> string -> ((string * string) list * float series) list -> tval gauge : ?help:string -> string -> ((string * string) list * float series) list -> tval histogram : ?help:string -> string -> ((string * string) list * histogram series) list -> tval summary : ?help:string -> string -> ((string * string) list * summary series) list -> t