Class FileDescriptorRatioGauge

java.lang.Object
io.dropwizard.metrics5.RatioGauge
io.dropwizard.metrics5.jvm.FileDescriptorRatioGauge
All Implemented Interfaces:
io.dropwizard.metrics5.Gauge<Double>, io.dropwizard.metrics5.Metric

public class FileDescriptorRatioGauge extends io.dropwizard.metrics5.RatioGauge
A gauge for the ratio of used to total file descriptors.
  • Constructor Details

    • FileDescriptorRatioGauge

      public FileDescriptorRatioGauge()
      Creates a new gauge using the platform OS bean.
    • FileDescriptorRatioGauge

      public FileDescriptorRatioGauge(OperatingSystemMXBean os)
      Creates a new gauge using the given OS bean.
      Parameters:
      os - an OperatingSystemMXBean
  • Method Details

    • getRatio

      protected io.dropwizard.metrics5.RatioGauge.Ratio getRatio()
      Specified by:
      getRatio in class io.dropwizard.metrics5.RatioGauge