Class MPPrometheusConfig

  • All Implemented Interfaces:
    io.micrometer.core.instrument.config.MeterRegistryConfig, io.micrometer.prometheus.PrometheusConfig

    public class MPPrometheusConfig
    extends Object
    implements io.micrometer.prometheus.PrometheusConfig
    MPPrometheusConfig is an implementation of the PrometheusConfig which will accept Prometheus related configuration values prepended with "mp.metrics.". This Config is used for the PrometheusMeterRegistry that is created for the MicroProfile Metric Registries in SharedMetricRegistries. This Config is not created within the SharedMetricRegistries due to some vendors having to load the SmallRye classes with reflection and the possibility of the Micrometer Prometheus library not being on the class path during runtime.
    • Constructor Detail

      • MPPrometheusConfig

        public MPPrometheusConfig()
    • Method Detail

      • get

        public String get​(String propertyName)
        Specified by:
        get in interface io.micrometer.core.instrument.config.MeterRegistryConfig