Package io.micrometer.newrelic
Class NewRelicMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
io.micrometer.core.instrument.step.StepMeterRegistry
io.micrometer.newrelic.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 classNewRelicMeterRegistry.Builder -
Field Summary
-
Constructor Summary
Constructors Constructor Description NewRelicMeterRegistry(NewRelicConfig config, io.micrometer.core.instrument.Clock clock)NewRelicMeterRegistry(NewRelicConfig config, io.micrometer.core.instrument.Clock clock, java.util.concurrent.ThreadFactory threadFactory)Deprecated.Usebuilder(NewRelicConfig)instead. -
Method Summary
Modifier and Type Method Description static NewRelicMeterRegistry.Builderbuilder(NewRelicConfig config)protected java.util.concurrent.TimeUnitgetBaseTimeUnit()protected voidpublish()voidstart(java.util.concurrent.ThreadFactory threadFactory)Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry
defaultHistogramConfig, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimerMethods inherited from class io.micrometer.core.instrument.push.PushMeterRegistry
close, start, stopMethods 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
-
Constructor Details
-
NewRelicMeterRegistry
- 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.Usebuilder(NewRelicConfig)instead.- 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 Details
-
builder
-
start
public void start(java.util.concurrent.ThreadFactory threadFactory)- Overrides:
startin classio.micrometer.core.instrument.push.PushMeterRegistry
-
publish
protected void publish()- Specified by:
publishin classio.micrometer.core.instrument.push.PushMeterRegistry
-
getBaseTimeUnit
protected java.util.concurrent.TimeUnit getBaseTimeUnit()- Specified by:
getBaseTimeUnitin classio.micrometer.core.instrument.MeterRegistry
-