Prometheus

org.http4s.metrics.prometheus.Prometheus
See thePrometheus companion class
object Prometheus

Attributes

Companion
class
Source
Prometheus.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Prometheus.type

Members list

Value members

Concrete methods

def collectorRegistry[F[_]](implicit F: Sync[F]): Resource[F, CollectorRegistry]

Attributes

Source
Prometheus.scala
def default[F[_] : Sync](registry: CollectorRegistry): Prometheus[F]

Attributes

Source
Prometheus.scala
def metricsOps[F[_] : Sync](registry: CollectorRegistry, prefix: String, responseDurationSecondsHistogramBuckets: NonEmptyList[Double]): Resource[F, MetricsOps[F]]

Creates a MetricsOps that supports Prometheus metrics

Creates a MetricsOps that supports Prometheus metrics

Value parameters

prefix

a prefix that will be added to all metrics

registry

a metrics collector registry

Attributes

Source
Prometheus.scala
def metricsOpsWithExemplars[F[_] : Sync](registry: CollectorRegistry, sampleExemplar: F[Option[Map[String, String]]], prefix: String, responseDurationSecondsHistogramBuckets: NonEmptyList[Double]): Resource[F, MetricsOps[F]]

Creates a MetricsOps that supports Prometheus metrics and records exemplars.

Creates a MetricsOps that supports Prometheus metrics and records exemplars.

Warning: The sampler effect is responsible for producing exemplar labels that are valid for the underlying implementation as errors happening during metric recording will not be handled! For Prometheus version < 1.0, this means the combined length of keys and values may not exceed 128 characters and the parts must adhere to the label regex Prometheus defines.

Value parameters

prefix

a prefix that will be added to all metrics

registry

a metrics collector registry

sampleExemplar

an effect that returns the corresponding exemplar labels

Attributes

Source
Prometheus.scala

Concrete fields