Class AbstractMeterRegistry.ConfigImpl
- java.lang.Object
-
- org.forgerock.monitoring.dropwizard.AbstractMeterRegistry.ConfigImpl
-
- All Implemented Interfaces:
MeterRegistry.Config
- Enclosing class:
- AbstractMeterRegistry
public class AbstractMeterRegistry.ConfigImpl extends Object implements MeterRegistry.Config
Access to configuration options for this registry. ForgeRock changes: - Removed @Incubating annotations
-
-
Constructor Summary
Constructors Constructor Description ConfigImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clockclock()Returns the Clock used to measure durations of Timers.MeterRegistry.ConfigcommonTags(Iterable<Tag> tags)Append a list of common tags to apply to all metrics reported to the monitoring system.MeterRegistry.ConfigcommonTags(String... tags)Append a list of common tags to apply to all metrics reported to the monitoring system.MeterRegistry.ConfigmeterFilter(MeterFilter filter)Add a meter filter to the registry.NamingConventionnamingConvention()Returns the associated Naming Convention.MeterRegistry.ConfignamingConvention(NamingConvention convention)Use the provided naming convention, overriding the default for your monitoring system.MeterRegistry.ConfigonMeterAdded(Consumer<Meter> meter)Register an event listener for each meter added to the registry.PauseDetectorpauseDetector()Returns the associated Pause Detector.MeterRegistry.ConfigpauseDetector(PauseDetector detector)Sets the default pause detector to use for all timers in this registry.
-
-
-
Method Detail
-
commonTags
public MeterRegistry.Config commonTags(Iterable<Tag> tags)
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
public MeterRegistry.Config commonTags(String... tags)
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
public MeterRegistry.Config meterFilter(MeterFilter filter)
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
public MeterRegistry.Config onMeterAdded(Consumer<Meter> meter)
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
public MeterRegistry.Config namingConvention(NamingConvention convention)
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
public NamingConvention 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
public Clock 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
public MeterRegistry.Config pauseDetector(PauseDetector detector)
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
public PauseDetector 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.
-
-