object PrometheusBackend
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PrometheusBackend
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- final case class RequestCollectors(maybeTimer: Option[Timer], maybeGauge: Option[Child]) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DefaultErrorCounterName: String
- val DefaultFailureCounterName: String
- val DefaultHistogramName: String
- val DefaultMethodLabel: String
- val DefaultRequestSizeName: String
- val DefaultRequestsInProgressGaugeName: String
- val DefaultResponseSizeName: String
- val DefaultStatusLabel: String
- val DefaultSuccessCounterName: String
-
def
addMethodLabel[T <: BaseCollectorConfig](config: T, req: Request[_, _]): PrometheusBackend.addMethodLabel.T.T
Add, if not present, a "method" label.
Add, if not present, a "method" label. That is, if the user already supplied such a label, it is left as-is.
- 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[_]): PrometheusBackend.addStatusLabel.T.T
Add, if not present, a "status" label.
Add, if not present, a "status" label. That is, if the user already supplied such a label, it is left as-is.
- 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: (Request[_, _]) ⇒ Option[HistogramCollectorConfig] = ..., requestToInProgressGaugeNameMapper: (Request[_, _]) ⇒ Option[CollectorConfig] = ..., responseToSuccessCounterMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., responseToErrorCounterMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., requestToFailureCounterMapper: (Request[_, _], Throwable) ⇒ Option[CollectorConfig] = ..., requestToSizeSummaryMapper: (Request[_, _]) ⇒ Option[CollectorConfig] = ..., responseToSizeSummaryMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., collectorRegistry: CollectorRegistry = CollectorRegistry.defaultRegistry): SttpBackend[F, P]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(collectorRegistry: CollectorRegistry): Unit
Clear cached collectors (gauges and histograms) both from the given collector registry, and from the backend.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated