public class MicrometerMetricsFactory extends Object implements VertxMetricsFactory
| Constructor and Description |
|---|
MicrometerMetricsFactory() |
MicrometerMetricsFactory(io.micrometer.core.instrument.MeterRegistry micrometerRegistry)
Build a factory passing the Micrometer MeterRegistry to be used by Vert.x.
|
| Modifier and Type | Method and Description |
|---|---|
VertxMetrics |
metrics(VertxOptions vertxOptions)
Create a new
VertxMetrics object.
No specific thread and context can be expected when this method is called. |
MetricsOptions |
newOptions()
Create an empty metrics options.
|
MetricsOptions |
newOptions(JsonObject jsonObject)
Create metrics options from the provided
jsonObject. |
MetricsOptions |
newOptions(MetricsOptions options)
Create metrics options from the provided
options. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic MicrometerMetricsFactory()
public MicrometerMetricsFactory(io.micrometer.core.instrument.MeterRegistry micrometerRegistry)
micrometerRegistry - the registry to usepublic VertxMetrics metrics(VertxOptions vertxOptions)
VertxMetricsFactoryVertxMetrics object.
No specific thread and context can be expected when this method is called.metrics in interface VertxMetricsFactoryvertxOptions - the metrics configuration optionpublic MetricsOptions newOptions(MetricsOptions options)
VertxMetricsFactoryoptions.
Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used when a Vert.x instance is created with a MetricsOptions instance.
newOptions in interface VertxMetricsFactoryoptions - new metrics optionspublic MetricsOptions newOptions()
VertxMetricsFactoryLauncher class when creating new options when building a CLI Vert.x.newOptions in interface VertxMetricsFactorypublic MetricsOptions newOptions(JsonObject jsonObject)
VertxMetricsFactoryjsonObject.
Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used by the Launcher class when creating new options when building a CLI Vert.x.
newOptions in interface VertxMetricsFactoryjsonObject - json provided by the userCopyright © 2025 Eclipse. All rights reserved.