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, wait
init
public MicrometerMetricsFactory()
public MicrometerMetricsFactory(io.micrometer.core.instrument.MeterRegistry micrometerRegistry)
micrometerRegistry
- the registry to usepublic VertxMetrics metrics(VertxOptions vertxOptions)
VertxMetricsFactory
VertxMetrics
object.
No specific thread and context can be expected when this method is called.metrics
in interface VertxMetricsFactory
vertxOptions
- the metrics configuration optionpublic MetricsOptions newOptions(MetricsOptions options)
VertxMetricsFactory
options
.
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 VertxMetricsFactory
options
- new metrics optionspublic MetricsOptions newOptions()
VertxMetricsFactory
Launcher
class when creating new options when building a CLI Vert.x.newOptions
in interface VertxMetricsFactory
public MetricsOptions newOptions(JsonObject jsonObject)
VertxMetricsFactory
jsonObject
.
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 VertxMetricsFactory
jsonObject
- json provided by the userCopyright © 2024 Eclipse. All rights reserved.