Class VertxJmxMetricsOptions

java.lang.Object
io.vertx.micrometer.VertxJmxMetricsOptions

public class VertxJmxMetricsOptions extends Object
Options for Prometheus metrics backend.
Author:
Joel Takvorian
  • Field Details

    • DEFAULT_ENABLED

      public static final boolean DEFAULT_ENABLED
      Default value for enabled = false.
      See Also:
    • DEFAULT_DOMAIN

      public static final String DEFAULT_DOMAIN
      Default value for the domain = metrics.
      See Also:
    • DEFAULT_STEP

      public static final int DEFAULT_STEP
      Default value for metric collection interval (in seconds) = 10.
      See Also:
  • Constructor Details

    • VertxJmxMetricsOptions

      public VertxJmxMetricsOptions()
      Default constructor
    • VertxJmxMetricsOptions

      public VertxJmxMetricsOptions(VertxJmxMetricsOptions other)
      Copy constructor
      Parameters:
      other - The other VertxJmxMetricsOptions to copy when creating this
    • VertxJmxMetricsOptions

      public VertxJmxMetricsOptions(JsonObject json)
      Create an instance from a JsonObject
      Parameters:
      json - the JsonObject to create it from
  • Method Details

    • toJson

      public JsonObject 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

      public VertxJmxMetricsOptions setEnabled(boolean enabled)
      Set true to enable Prometheus reporting
    • getDomain

      public String getDomain()
      Get the JMX domain under which metrics are published
    • setDomain

      public VertxJmxMetricsOptions setDomain(String domain)
      Set the JMX domain under which to publish metrics
    • getStep

      public int getStep()
      Get the step of push intervals, in seconds
    • setStep

      public VertxJmxMetricsOptions setStep(int step)
      Push interval steps, in seconds. Default is 10 seconds.
    • toMicrometerConfig

      public io.micrometer.jmx.JmxConfig toMicrometerConfig()
      Convert these options to a Micrometer's JmxConfig object