DropwizardMetrics

class DropwizardMetrics

Dropwizard metrics support feature. See https://ktor.io/servers/features/metrics.html for details.

Types

Configuration

class Configuration

Metrics feature configuration object that is used during feature installation.

Feature

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

Metrics feature companion

Constructors

<init>

DropwizardMetrics(
    registry: MetricRegistry,
    baseName: String = MetricRegistry.name("ktor.calls"))

Dropwizard metrics support feature. See https://ktor.io/servers/features/metrics.html for details.

Properties

baseName

val baseName: String

metrics base name (prefix)

registry

val registry: MetricRegistry

dropwizard metrics registry

Companion Object Properties

key

Unique key that identifies a feature

Companion Object Functions

install

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

Feature installation script