Module Prometheus.Sample_set

type sample = {
ext : string;

An extension to append to the base metric name.

value : float;
bucket : (LabelName.t * float) option;

The "le" or "quantile" label and value, if any.

}
type t = sample list

A collection of values that together represent a single sample. For a counter, each reading is just a single value, but more complex types require multiple values. For example, a "summary" sample set contains "_sum" and "_count" values.

val sample : ?⁠ext:string -> ?⁠bucket:(LabelName.t * float) -> float -> sample