Configuration

class Configuration

Configures this Feature

Constructors

<init>

Configuration()

Configures this Feature

Properties

distributionStatisticConfig

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.

meterBinders

var meterBinders: List<MeterBinder>

The binders that are automatically bound to the registry. Default: ClassLoaderMetrics, JvmMemoryMetrics, ProcessorMetrics, JvmGcMetrics, ProcessorMetrics, JvmThreadMetrics, FileDescriptorMetrics

registry

lateinit var registry: MeterRegistry

The meter registry where the meters are registered. Mandatory

Functions

timerBuilder

fun timerBuilder(
    block: Builder.(ApplicationCall, Throwable?) -> Unit
): Unit

Configure micrometer timers

timers

fun timers(
    block: Builder.(ApplicationCall, Throwable?) -> Unit
): Unit

Configure micrometer timers