Class VertxJmxMetricsOptions


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

      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        Default value for enabled = false.
        See Also:
        Constant Field Values
      • DEFAULT_STEP

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

      • VertxJmxMetricsOptions

        public VertxJmxMetricsOptions()
        Default constructor
      • VertxJmxMetricsOptions

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

      • 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
      • 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