package prometheus

  1. Overview
  2. Docs
type t
val of_linear : float -> float -> int -> t

of_linear start interval count will return a histogram type with count buckets with values starting at start and interval apart: (start, start+interval, start + (2 * interval), ... start + ((count-1) * interval), infinity). count does not include the infinity bucket.

val of_exponential : float -> float -> int -> t

of_exponential start factor count will return a histogram type with count buckets with values starting at start and every next item previous*factor. count does not include the infinity bucket.

val of_list : float list -> t

of_list [0.5; 1.] will return a histogram with buckets 0.5;1.;infinity.

OCaml

Innovation. Community. Security.