Class MeterRegistries

java.lang.Object
io.kroxylicious.proxy.internal.MeterRegistries
All Implemented Interfaces:
AutoCloseable

public class MeterRegistries extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • maybePrometheusMeterRegistry

      public Optional<io.micrometer.prometheusmetrics.PrometheusMeterRegistry> maybePrometheusMeterRegistry()
      Offers up a prometheus registry if available. Currently, we always have a prometheus registry but in future we may wish to use a different micrometer backend. Clients should use the global io.micrometer.core.instrument.Metrics static methods to record metrics, not this implementation. This is used to support specialisations like scraping the prometheus metrics.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable