Module Tiny_httpd_prometheus.Counter

Counters

type t

A counter, monotonically increasing

val create : Registry.t -> ?tags:tags -> ?descr:string -> string -> t
val incr : t -> unit
val incr_by : t -> int -> unit
val incr_to : t -> int -> unit

Increment to the given number. If it's lower than the current value this does nothing