Class MicrometerMetricsCaptor
java.lang.Object
org.springframework.integration.support.management.micrometer.MicrometerMetricsCaptor
- All Implemented Interfaces:
MetricsCaptor
The Micrometer implementation of
MetricsCaptor.- Since:
- 5.0.4
- Author:
- Gary Russell, Artem Bilan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classMicrometerMetricsCaptor.AbstractMeter<M extends io.micrometer.core.instrument.Meter>protected static classprotected static classprotected static classprotected static classprotected static classprotected static classNested classes/interfaces inherited from interface org.springframework.integration.support.management.metrics.MetricsCaptor
MetricsCaptor.CounterBuilder, MetricsCaptor.GaugeBuilder, MetricsCaptor.TimerBuilder -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMicrometerMetricsCaptor(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncounterBuilder(String name) Create a counter builder for a counter with the provided name.gaugeBuilder(String name, Object obj, ToDoubleFunction<Object> f) Create a gauge builder for a gauge with the provided parameters.io.micrometer.core.instrument.MeterRegistryremoveMeter(MeterFacade facade) Remove a meter facade.start()Start a sample collection.timerBuilder(String name) Create a timer builder for a timer with the provided name.
-
Field Details
-
MICROMETER_CAPTOR_NAME
- See Also:
-
-
Constructor Details
-
MicrometerMetricsCaptor
public MicrometerMetricsCaptor(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
getMeterRegistry
public io.micrometer.core.instrument.MeterRegistry getMeterRegistry() -
timerBuilder
Description copied from interface:MetricsCaptorCreate a timer builder for a timer with the provided name.- Specified by:
timerBuilderin interfaceMetricsCaptor- Parameters:
name- the name.- Returns:
- the builder.
-
counterBuilder
Description copied from interface:MetricsCaptorCreate a counter builder for a counter with the provided name.- Specified by:
counterBuilderin interfaceMetricsCaptor- Parameters:
name- the name.- Returns:
- the builder.
-
gaugeBuilder
Description copied from interface:MetricsCaptorCreate a gauge builder for a gauge with the provided parameters.- Specified by:
gaugeBuilderin interfaceMetricsCaptor- Parameters:
name- the name.obj- the object with which to invoke the function.f- the function.- Returns:
- the builder.
-
start
Description copied from interface:MetricsCaptorStart a sample collection.- Specified by:
startin interfaceMetricsCaptor- Returns:
- the sample.
-
removeMeter
Description copied from interface:MetricsCaptorRemove a meter facade.- Specified by:
removeMeterin interfaceMetricsCaptor- Parameters:
facade- the facade to remove.- Returns:
- the removed facade, or null.
-