Class PrometheusConfigAdapter

java.lang.Object
pl.allegro.tech.hermes.consumers.config.PrometheusConfigAdapter
All Implemented Interfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig, io.micrometer.prometheus.PrometheusConfig

public class PrometheusConfigAdapter extends Object implements io.micrometer.prometheus.PrometheusConfig
  • Field Summary

    Fields inherited from interface io.micrometer.prometheus.PrometheusConfig

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrometheusConfigAdapter(PrometheusProperties prometheusReporterProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get(String key)
    Returning null is fine since we override all the methods from PrometheusConfig.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig

    requireValid

    Methods inherited from interface io.micrometer.prometheus.PrometheusConfig

    histogramFlavor, prefix, validate
  • Constructor Details

    • PrometheusConfigAdapter

      public PrometheusConfigAdapter(PrometheusProperties prometheusReporterProperties)
  • Method Details

    • descriptions

      public boolean descriptions()
      Specified by:
      descriptions in interface io.micrometer.prometheus.PrometheusConfig
    • step

      public Duration step()
      Specified by:
      step in interface io.micrometer.prometheus.PrometheusConfig
    • get

      public String get(String key)
      Returning null is fine since we override all the methods from PrometheusConfig.
      Specified by:
      get in interface io.micrometer.core.instrument.config.MeterRegistryConfig