package prometheus

  1. Overview
  2. Docs
type sample = {
  1. ext : string;
    (*

    An extension to append to the base metric name.

    *)
  2. value : float;
  3. 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