Class NewRelicMetricsExportAutoConfiguration


  • @Configuration
    @ConditionalOnBean(io.micrometer.core.instrument.Clock.class)
    @ConditionalOnClass(io.micrometer.newrelic.NewRelicMeterRegistry.class)
    @ConditionalOnProperty(prefix="management.metrics.export.newrelic",
                           name="enabled",
                           havingValue="true",
                           matchIfMissing=true)
    @EnableConfigurationProperties(NewRelicProperties.class)
    @Import(StringToDurationConverter.class)
    public class NewRelicMetricsExportAutoConfiguration
    extends java.lang.Object
    Configuration for exporting metrics to New Relic.
    Since:
    1.0.0
    • Constructor Detail

      • NewRelicMetricsExportAutoConfiguration

        public NewRelicMetricsExportAutoConfiguration()
    • Method Detail

      • newRelicConfig

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.newrelic.NewRelicConfig newRelicConfig​(NewRelicProperties props)
      • newRelicMeterRegistry

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.newrelic.NewRelicMeterRegistry newRelicMeterRegistry​(io.micrometer.newrelic.NewRelicConfig config,
                                                                                  io.micrometer.core.instrument.Clock clock)