Prometheus_lwt.CollectorRegistryval of_registry : Prometheus.CollectorRegistry.t -> tof_registry core is the Lwt view over the existing registry core.
val default : tdefault is the view over Prometheus.CollectorRegistry.default.
val core : t -> Prometheus.CollectorRegistry.tcore t is the underlying core registry. Use it to register synchronous metrics.
val collect : t -> Prometheus.CollectorRegistry.snapshot Lwt.tcollect t reads the current value of every metric.
val register :
t ->
Prometheus.MetricInfo.t ->
(unit -> Prometheus.Sample_set.t Prometheus.LabelSetMap.t Lwt.t) ->
unitregister t info collector registers a collector that may suspend before producing its samples.
val register_pre_collect : t -> (unit -> unit Lwt.t) -> unitregister_pre_collect t f arranges for f () to run at the start of each collection.