Class VertxJmxMetricsOptions
java.lang.Object
io.vertx.micrometer.VertxJmxMetricsOptions
Options for Prometheus metrics backend.
- Author:
- Joel Takvorian
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault value for the domain = metrics.static final booleanDefault value for enabled = false.static final intDefault value for metric collection interval (in seconds) = 10. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the JMX domain under which metrics are publishedintgetStep()Get the step of push intervals, in secondsbooleanWill JMX reporting be enabled?Set the JMX domain under which to publish metricssetEnabled(boolean enabled) Set true to enable Prometheus reportingsetStep(int step) Push interval steps, in seconds.toJson()io.micrometer.jmx.JmxConfigConvert these options to a Micrometer'sJmxConfigobject
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDDefault value for enabled = false.- See Also:
-
DEFAULT_DOMAIN
-
DEFAULT_STEP
public static final int DEFAULT_STEPDefault value for metric collection interval (in seconds) = 10.- See Also:
-
-
Constructor Details
-
VertxJmxMetricsOptions
public VertxJmxMetricsOptions()Default constructor -
VertxJmxMetricsOptions
Copy constructor- Parameters:
other- The otherVertxJmxMetricsOptionsto copy when creating this
-
VertxJmxMetricsOptions
Create an instance from aJsonObject- Parameters:
json- the JsonObject to create it from
-
-
Method Details
-
toJson
- Returns:
- a JSON representation of these options
-
isEnabled
public boolean isEnabled()Will JMX reporting be enabled?- Returns:
- true if enabled, false if not.
-
setEnabled
Set true to enable Prometheus reporting -
getDomain
Get the JMX domain under which metrics are published -
setDomain
Set the JMX domain under which to publish metrics -
getStep
public int getStep()Get the step of push intervals, in seconds -
setStep
Push interval steps, in seconds. Default is 10 seconds. -
toMicrometerConfig
public io.micrometer.jmx.JmxConfig toMicrometerConfig()Convert these options to a Micrometer'sJmxConfigobject
-