Configuration

class Configuration

Configures this Feature

Constructors

Link copied to clipboard
fun Configuration()

Functions

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

Configure micrometer timers

Properties

Link copied to clipboard
var baseName: String

The base prefix for metrics. Default: Feature.defaultBaseName

Link copied to clipboard
var distinctNotRegisteredRoutes: Boolean = true

specifies if requests for non existent routes should contain request path or fallback to common n/a value. true 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>

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

Link copied to clipboard
lateinit var registry: MeterRegistry

The meter registry where the meters are registered. Mandatory