Class AbstractMeterRegistry.ConfigImpl
java.lang.Object
org.forgerock.monitoring.dropwizard.AbstractMeterRegistry.ConfigImpl
- All Implemented Interfaces:
MeterRegistry.Config
- Enclosing class:
- AbstractMeterRegistry
Access to configuration options for this registry.
ForgeRock changes:
- Removed @Incubating annotations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclock()
Returns the Clock used to measure durations of Timers.commonTags
(Iterable<Tag> tags) Append a list of common tags to apply to all metrics reported to the monitoring system.commonTags
(String... tags) Append a list of common tags to apply to all metrics reported to the monitoring system.meterFilter
(MeterFilter filter) Add a meter filter to the registry.Returns the associated Naming Convention.namingConvention
(NamingConvention convention) Use the provided naming convention, overriding the default for your monitoring system.onMeterAdded
(Consumer<Meter> meter) Register an event listener for each meter added to the registry.Returns the associated Pause Detector.pauseDetector
(PauseDetector detector) Sets the default pause detector to use for all timers in this registry.
-
Constructor Details
-
ConfigImpl
public ConfigImpl()
-
-
Method Details
-
commonTags
Description copied from interface:MeterRegistry.Config
Append a list of common tags to apply to all metrics reported to the monitoring system.- Specified by:
commonTags
in interfaceMeterRegistry.Config
- Parameters:
tags
- Tags to add to every metric.- Returns:
- This configuration instance.
-
commonTags
Description copied from interface:MeterRegistry.Config
Append a list of common tags to apply to all metrics reported to the monitoring system. Must be an even number of arguments representing key/value pairs of tags.- Specified by:
commonTags
in interfaceMeterRegistry.Config
- Parameters:
tags
- MUST be an even number of arguments representing key/value pairs of tags.- Returns:
- This configuration instance.
-
meterFilter
Description copied from interface:MeterRegistry.Config
Add a meter filter to the registry. Filters are applied in the order in which they are added.- Specified by:
meterFilter
in interfaceMeterRegistry.Config
- Parameters:
filter
- The filter to add to the registry.- Returns:
- This configuration instance.
-
onMeterAdded
Description copied from interface:MeterRegistry.Config
Register an event listener for each meter added to the registry.- Specified by:
onMeterAdded
in interfaceMeterRegistry.Config
- Parameters:
meter
- The meter that has just been added- Returns:
- This configuration instance.
-
namingConvention
Description copied from interface:MeterRegistry.Config
Use the provided naming convention, overriding the default for your monitoring system.- Specified by:
namingConvention
in interfaceMeterRegistry.Config
- Parameters:
convention
- The naming convention to use.- Returns:
- This configuration instance.
-
namingConvention
Description copied from interface:MeterRegistry.Config
Returns the associated Naming Convention.- Specified by:
namingConvention
in interfaceMeterRegistry.Config
- Returns:
- The naming convention currently in use on this registry.
-
clock
Description copied from interface:MeterRegistry.Config
Returns the Clock used to measure durations of Timers.- Specified by:
clock
in interfaceMeterRegistry.Config
- Returns:
- The clock used to measure durations of timers and long task timers (and sometimes influences publishing behavior).
-
pauseDetector
Description copied from interface:MeterRegistry.Config
Sets the default pause detector to use for all timers in this registry.- Specified by:
pauseDetector
in interfaceMeterRegistry.Config
- Parameters:
detector
- The pause detector to use.- Returns:
- This configuration instance.
- See Also:
-
- "io.micrometer.core.instrument.histogram.pause.NoPauseDetector"
- "io.micrometer.core.instrument.histogram.pause.ClockDriftPauseDetector"
-
pauseDetector
Description copied from interface:MeterRegistry.Config
Returns the associated Pause Detector.- Specified by:
pauseDetector
in interfaceMeterRegistry.Config
- Returns:
- The pause detector that is currently in effect.
-