package prometheus
Module PrometheusSource
Collect metrics for Prometheus. See: https://prometheus.io/
Notes:
- The Prometheus docs require that client libraries are thread-safe. We interpret this to mean safe with Lwt threads, NOT with native threading.
- This library is intended to be a dependency of any library that might need to report metrics, even though many applications will not enable it. Therefore it should have minimal dependencies.
A valid name for a metric.
Metadata about a metric.
A map indexed by a set of labels.
A map indexed by metric families.
A collection of metric reporters. Usually, only CollectorRegistry.default is used.
A counter is a cumulative metric that represents a single numerical value that only ever goes up.
A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
A summary is a metric that records both the number of readings and their total. This allows calculating the average.
A histogram configured with reasonable defaults for measuring network request times in seconds.