Class NewRelicMeterRegistry


  • public class NewRelicMeterRegistry
    extends io.micrometer.core.instrument.step.StepMeterRegistry
    Publishes metrics to New Relic Insights.
    Since:
    1.0.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NewRelicMeterRegistry.Builder  
      • Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry

        io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More
    • Field Summary

      • Fields inherited from class io.micrometer.core.instrument.MeterRegistry

        clock
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NewRelicMeterRegistry.Builder builder​(NewRelicConfig config)  
      protected java.util.concurrent.TimeUnit getBaseTimeUnit()  
      protected void publish()  
      void start​(java.util.concurrent.ThreadFactory threadFactory)  
      • Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry

        defaultHistogramConfig, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimer
      • Methods inherited from class io.micrometer.core.instrument.push.PushMeterRegistry

        close, start, stop
      • Methods inherited from class io.micrometer.core.instrument.MeterRegistry

        clear, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, more, newTimeGauge, remove, remove, summary, summary, timer, timer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewRelicMeterRegistry

        public NewRelicMeterRegistry​(NewRelicConfig config,
                                     io.micrometer.core.instrument.Clock clock)
        Parameters:
        config - Configuration options for the registry that are describable as properties.
        clock - The clock to use for timings.
      • NewRelicMeterRegistry

        @Deprecated
        public NewRelicMeterRegistry​(NewRelicConfig config,
                                     io.micrometer.core.instrument.Clock clock,
                                     java.util.concurrent.ThreadFactory threadFactory)
        Deprecated.
        Parameters:
        config - Configuration options for the registry that are describable as properties.
        clock - The clock to use for timings.
        threadFactory - The thread factory to use to create the publishing thread.
    • Method Detail

      • start

        public void start​(java.util.concurrent.ThreadFactory threadFactory)
        Overrides:
        start in class io.micrometer.core.instrument.push.PushMeterRegistry
      • publish

        protected void publish()
        Specified by:
        publish in class io.micrometer.core.instrument.push.PushMeterRegistry
      • getBaseTimeUnit

        protected java.util.concurrent.TimeUnit getBaseTimeUnit()
        Specified by:
        getBaseTimeUnit in class io.micrometer.core.instrument.MeterRegistry