Class PushMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
- Direct Known Subclasses:
StepMeterRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
MeterRegistry.Config, MeterRegistry.More -
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPushMeterRegistry(PushRegistryConfig config, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this registry, releasing any resources in the process.protected longReturns the time, in milliseconds, when the last scheduled publish was started bypublishSafelyOrSkipIfInProgress().protected booleanReturns if scheduled publishing of metrics is in progress.protected abstract voidpublish()final voidstart()Deprecated.voidstart(ThreadFactory threadFactory) protected StringMessage that will be logged when the registry isstarted.voidstop()protected voidWait until scheduled publishing byPushMeterRegistrycompletes, if in progress.Methods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, counter, defaultHistogramConfig, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getBaseTimeUnit, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newLongTaskTimer, newMeter, newTimeGauge, newTimer, remove, remove, removeByPreFilterId, summary, summary, timer, timer, timer
-
Constructor Details
-
PushMeterRegistry
-
-
Method Details
-
publish
protected abstract void publish() -
isPublishing
protected boolean isPublishing()Returns if scheduled publishing of metrics is in progress.- Returns:
- if scheduled publishing of metrics is in progress
- Since:
- 1.11.0
-
getLastScheduledPublishStartTime
protected long getLastScheduledPublishStartTime()Returns the time, in milliseconds, when the last scheduled publish was started bypublishSafelyOrSkipIfInProgress().- Since:
- 1.11.1
-
start
Deprecated.Usestart(ThreadFactory)instead. -
start
-
startMessage
Message that will be logged when the registry isstarted. This can be overridden to customize the message with info specific to the registry implementation that may be helpful in troubleshooting. By default, the registry class name and step interval are included.- Returns:
- message to log on registry start
- Since:
- 1.13.0
-
stop
public void stop() -
close
public void close()Description copied from class:MeterRegistryCloses this registry, releasing any resources in the process. Once closed, this registry will no longer accept new meters and any publishing activity will cease.- Overrides:
closein classMeterRegistry
-
waitForInProgressScheduledPublish
protected void waitForInProgressScheduledPublish()Wait until scheduled publishing byPushMeterRegistrycompletes, if in progress.- Since:
- 1.11.6
-
start(ThreadFactory)instead.