PrometheusBackend

sttp.client3.prometheus.PrometheusBackend$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class RequestCollectors(maybeTimer: Option[Timer], maybeGauge: Option[Child])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addMethodLabel[T <: BaseCollectorConfig](config: T, req: RequestT[Identity, _, _]): T

Add, if not present, a "method" label. That is, if the user already supplied such a label, it is left as-is.

Add, if not present, a "method" label. That is, if the user already supplied such a label, it is left as-is.

Attributes

config

The collector config to which the label should be added.

Returns:

The modified collector config. The config can be used when configuring the backend using apply.

def addStatusLabel[T <: BaseCollectorConfig](config: T, resp: Response[_]): T

Add, if not present, a "status" label. That is, if the user already supplied such a label, it is left as-is.

Add, if not present, a "status" label. That is, if the user already supplied such a label, it is left as-is.

Attributes

config

The collector config to which the label should be added.

Returns:

The modified collector config. The config can be used when configuring the backend using apply.

def apply[F[_], P](delegate: SttpBackend[F, P], requestToHistogramNameMapper: RequestT[Identity, _, _] => Option[HistogramCollectorConfig], requestToInProgressGaugeNameMapper: RequestT[Identity, _, _] => Option[CollectorConfig], responseToSuccessCounterMapper: (RequestT[Identity, _, _], Response[_]) => Option[CollectorConfig], responseToErrorCounterMapper: (RequestT[Identity, _, _], Response[_]) => Option[CollectorConfig], requestToFailureCounterMapper: (RequestT[Identity, _, _], Throwable) => Option[CollectorConfig], requestToSizeSummaryMapper: RequestT[Identity, _, _] => Option[CollectorConfig], responseToSizeSummaryMapper: (RequestT[Identity, _, _], Response[_]) => Option[CollectorConfig], collectorRegistry: CollectorRegistry): SttpBackend[F, P]
def clear(collectorRegistry: CollectorRegistry): Unit

Clear cached collectors (gauges and histograms) both from the given collector registry, and from the backend.

Clear cached collectors (gauges and histograms) both from the given collector registry, and from the backend.

Attributes