public class MeterRegistry.Config
extends java.lang.Object
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
Clock |
clock() |
MeterRegistry.Config |
commonTags(java.lang.Iterable<Tag> tags)
Append a list of common tags to apply to all metrics reported to the monitoring system.
|
MeterRegistry.Config |
commonTags(java.lang.String... tags)
Append a list of common tags to apply to all metrics reported to the monitoring system.
|
MeterRegistry.Config |
meterFilter(MeterFilter filter)
Add a meter filter to the registry.
|
NamingConvention |
namingConvention() |
MeterRegistry.Config |
namingConvention(NamingConvention convention)
Use the provided naming convention, overriding the default for your monitoring system.
|
MeterRegistry.Config |
onMeterAdded(java.util.function.Consumer<Meter> meter)
Register an event listener for each meter added to the registry.
|
PauseDetector |
pauseDetector() |
MeterRegistry.Config |
pauseDetector(PauseDetector detector)
Sets the default pause detector to use for all timers in this registry.
|
public MeterRegistry.Config commonTags(java.lang.Iterable<Tag> tags)
tags - Tags to add to every metric.public MeterRegistry.Config commonTags(java.lang.String... tags)
tags - MUST be an even number of arguments representing key/value pairs of tags.public MeterRegistry.Config meterFilter(MeterFilter filter)
filter - The filter to add to the registry.public MeterRegistry.Config onMeterAdded(java.util.function.Consumer<Meter> meter)
meter - The meter that has just been addedpublic MeterRegistry.Config namingConvention(NamingConvention convention)
convention - The naming convention to use.public NamingConvention namingConvention()
public Clock clock()
public MeterRegistry.Config pauseDetector(PauseDetector detector)
detector - The pause detector to use.NoPauseDetector,
ClockDriftPauseDetectorpublic PauseDetector pauseDetector()