public static interface MeterRegistry.Config
Modifier and Type | Method and Description |
---|---|
Clock |
clock()
Returns the Clock used to measure durations of Timers.
|
default MeterRegistry.Config |
commonTags(Iterable<Tag> tags)
Append a list of common tags to apply to all metrics reported to the monitoring system.
|
default MeterRegistry.Config |
commonTags(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()
Returns the associated Naming Convention.
|
MeterRegistry.Config |
namingConvention(NamingConvention convention)
Use the provided naming convention, overriding the default for your monitoring system.
|
MeterRegistry.Config |
onMeterAdded(Consumer<Meter> meter)
Register an event listener for each meter added to the registry.
|
PauseDetector |
pauseDetector()
Returns the associated Pause Detector.
|
MeterRegistry.Config |
pauseDetector(PauseDetector detector)
Sets the default pause detector to use for all timers in this registry.
|
default MeterRegistry.Config commonTags(Iterable<Tag> tags)
tags
- Tags to add to every metric.default MeterRegistry.Config commonTags(String... tags)
tags
- MUST be an even number of arguments representing key/value pairs of tags.MeterRegistry.Config meterFilter(MeterFilter filter)
filter
- The filter to add to the registry.MeterRegistry.Config onMeterAdded(Consumer<Meter> meter)
meter
- The meter that has just been addedMeterRegistry.Config namingConvention(NamingConvention convention)
convention
- The naming convention to use.NamingConvention namingConvention()
Clock clock()
MeterRegistry.Config pauseDetector(PauseDetector detector)
detector
- The pause detector to use.PauseDetector pauseDetector()
Copyright 2010-2022 ForgeRock AS.