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
Constructors -
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.ConfigAppend a list of common tags to apply to all metrics reported to the monitoring system.- Specified by:
commonTagsin interfaceMeterRegistry.Config- Parameters:
tags- Tags to add to every metric.- Returns:
- This configuration instance.
-
commonTags
Description copied from interface:MeterRegistry.ConfigAppend 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:
commonTagsin 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.ConfigAdd a meter filter to the registry. Filters are applied in the order in which they are added.- Specified by:
meterFilterin interfaceMeterRegistry.Config- Parameters:
filter- The filter to add to the registry.- Returns:
- This configuration instance.
-
onMeterAdded
Description copied from interface:MeterRegistry.ConfigRegister an event listener for each meter added to the registry.- Specified by:
onMeterAddedin interfaceMeterRegistry.Config- Parameters:
meter- The meter that has just been added- Returns:
- This configuration instance.
-
namingConvention
Description copied from interface:MeterRegistry.ConfigUse the provided naming convention, overriding the default for your monitoring system.- Specified by:
namingConventionin interfaceMeterRegistry.Config- Parameters:
convention- The naming convention to use.- Returns:
- This configuration instance.
-
namingConvention
Description copied from interface:MeterRegistry.ConfigReturns the associated Naming Convention.- Specified by:
namingConventionin interfaceMeterRegistry.Config- Returns:
- The naming convention currently in use on this registry.
-
clock
Description copied from interface:MeterRegistry.ConfigReturns the Clock used to measure durations of Timers.- Specified by:
clockin 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.ConfigSets the default pause detector to use for all timers in this registry.- Specified by:
pauseDetectorin 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.ConfigReturns the associated Pause Detector.- Specified by:
pauseDetectorin interfaceMeterRegistry.Config- Returns:
- The pause detector that is currently in effect.
-