public class LoggingMeterRegistry extends StepMeterRegistry
MeterRegistry
.Modifier and Type | Class and Description |
---|---|
static class |
LoggingMeterRegistry.Builder |
MeterRegistry.Config, MeterRegistry.More
clock
Constructor and Description |
---|
LoggingMeterRegistry() |
LoggingMeterRegistry(LoggingRegistryConfig config,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
static LoggingMeterRegistry.Builder |
builder(LoggingRegistryConfig config) |
protected java.util.concurrent.TimeUnit |
getBaseTimeUnit() |
protected DistributionSummary |
newDistributionSummary(Meter.Id id,
DistributionStatisticConfig distributionStatisticConfig,
double scale)
Build a new distribution summary to be added to the registry.
|
protected Timer |
newTimer(Meter.Id id,
DistributionStatisticConfig distributionStatisticConfig,
PauseDetector pauseDetector)
Build a new timer to be added to the registry.
|
protected void |
publish() |
void |
start(java.util.concurrent.ThreadFactory threadFactory) |
defaultHistogramConfig, newCounter, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter
close, start, stop
config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, more, newTimeGauge, remove, remove, summary, summary, timer, timer
public LoggingMeterRegistry()
public LoggingMeterRegistry(LoggingRegistryConfig config, Clock clock)
public void start(java.util.concurrent.ThreadFactory threadFactory)
start
in class PushMeterRegistry
protected void publish()
publish
in class PushMeterRegistry
protected Timer newTimer(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector)
MeterRegistry
newTimer
in class StepMeterRegistry
id
- The id that uniquely identifies the timer.distributionStatisticConfig
- Configuration for published distribution statistics.pauseDetector
- The pause detector to use for coordinated omission compensation.protected DistributionSummary newDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, double scale)
MeterRegistry
newDistributionSummary
in class StepMeterRegistry
id
- The id that uniquely identifies the distribution summary.distributionStatisticConfig
- Configuration for published distribution statistics.scale
- Multiply every recorded sample by this factor.protected java.util.concurrent.TimeUnit getBaseTimeUnit()
getBaseTimeUnit
in class MeterRegistry
public static LoggingMeterRegistry.Builder builder(LoggingRegistryConfig config)