vertx / io.vertx.kotlin.ext.dropwizard / dropwizardMetricsOptionsOf

# dropwizardMetricsOptionsOf

`fun dropwizardMetricsOptionsOf(baseName: String? = null, configPath: String? = null, enabled: Boolean? = null, factory: VertxMetricsFactory? = null, jmxDomain: String? = null, jmxEnabled: Boolean? = null, metricRegistry: MetricRegistry? = null, monitoredEventBusHandlers: Iterable<Match>? = null, monitoredHttpClientEndpoints: Iterable<Match>? = null, monitoredHttpClientUris: Iterable<Match>? = null, monitoredHttpServerUris: Iterable<Match>? = null, registryName: String? = null): DropwizardMetricsOptions`

A function providing a DSL for building io.vertx.ext.dropwizard.DropwizardMetricsOptions objects.

Vert.x Dropwizard metrics configuration.

### Parameters

`baseName` - Set a custom baseName for metrics.

`configPath` - Set the path for a config file that contains options in JSON format, to be used to create a new options object. The file will be looked for on the file system first and then on the classpath if it's not found.

`enabled` - Set whether metrics will be enabled on the Vert.x instance.

`factory` - Programmatically set the metrics factory to be used when metrics are enabled. Only valid if = true. Normally Vert.x will look on the classpath for a metrics factory implementation, but if you want to set one programmatically you can use this method.

`jmxDomain` - Set the JMX domain to use when JMX metrics are enabled.

`jmxEnabled` - Set whether JMX will be enabled on the Vert.x instance.

`metricRegistry` - Set the optional metric registry used instead of the Dropwizard shared registry.

`monitoredEventBusHandlers` - Add a monitored event bus handler.

`monitoredHttpClientEndpoints` - Add an monitored http client endpoint.

`monitoredHttpClientUris` - Add an monitored http client uri.

`monitoredHttpServerUris` - Add an monitored http server uri.

`registryName` - Set the name used for registering the metrics in the Dropwizard shared registry.