vertx / io.vertx.kotlin.core.metrics / metricsOptionsOf

# metricsOptionsOf

`fun metricsOptionsOf(enabled: Boolean? = null, factory: VertxMetricsFactory? = null): MetricsOptions`

A function providing a DSL for building io.vertx.core.metrics.MetricsOptions objects.

Vert.x metrics base configuration, this class can be extended by provider implementations to configure those specific implementations.

### Parameters

`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 io.vertx.core.metrics.MetricsOptions = 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.