MicrometerMetricsConfig

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Specifies if requests for non-existent routes should contain a request path or fallback to common n/a value. false by default.

Link copied to clipboard
var distributionStatisticConfig: DistributionStatisticConfig

Configures the histogram and/or percentiles for all request timers. By default, 50%, 90% , 95% and 99% percentiles are configured. If your backend supports server side histograms, you should enable these instead with DistributionStatisticConfig.Builder.percentilesHistogram as client side percentiles cannot be aggregated.

Link copied to clipboard
var meterBinders: List<MeterBinder>

Allows you to configure a set of metrics for monitoring the JVM. To disable these metrics, assign an empty list to meterBinders:

Link copied to clipboard

Specifies the base name (prefix) of Ktor metrics used for monitoring HTTP requests. For example, the default "ktor.http.server.requests" values results in the following metrics:

Link copied to clipboard
var registry: MeterRegistry

Specifies the meter registry for your monitoring system. The example below shows how to create the PrometheusMeterRegistry:

Functions

Link copied to clipboard
fun timers(block: Timer.Builder.(ApplicationCall, Throwable?) -> Unit)

Configures micrometer timers. Can be used to customize tags for each timer, configure individual SLAs, and so on.

Link copied to clipboard

Configures mapping function for the route label string of the CallMeasure. Defaults to RoutingNode.path.