MicrometerMetrics

class MicrometerMetrics

Enables Micrometer support when installed. Exposes the following metrics:

Types

Configuration

class Configuration

Configures this Feature

Feature

companion object Feature : 
    ApplicationFeature<Application, Configuration, MicrometerMetrics>

Micrometer feature installation object

Constructors

<init>

MicrometerMetrics(
    registry: MeterRegistry,
    timerDistributionConfig: DistributionStatisticConfig,
    timerBuilder: Builder.(call: ApplicationCall, throwable: Throwable?) -> Unit)

Enables Micrometer support when installed. Exposes the following metrics:

Companion Object Properties

activeGaugeName

const val activeGaugeName: String

Active requests gauge name

key

Unique key that identifies a feature

requestTimerName

const val requestTimerName: String

Request time timer name

Companion Object Functions

install

fun install(
    pipeline: Application,
    configure: Configuration.() -> Unit
): MicrometerMetrics

Feature installation script