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
Modifier and TypeClassDescriptionprotected static class
MicrometerMetricsCaptor.AbstractMeter<M extends io.micrometer.core.instrument.Meter>
protected static class
protected static class
protected static class
protected static class
protected static class
protected static class
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.metrics.MetricsCaptor
MetricsCaptor.CounterBuilder, MetricsCaptor.GaugeBuilder, MetricsCaptor.TimerBuilder
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMicrometerMetricsCaptor
(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.MeterRegistry
removeMeter
(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:MetricsCaptor
Create a timer builder for a timer with the provided name.- Specified by:
timerBuilder
in interfaceMetricsCaptor
- Parameters:
name
- the name.- Returns:
- the builder.
-
counterBuilder
Description copied from interface:MetricsCaptor
Create a counter builder for a counter with the provided name.- Specified by:
counterBuilder
in interfaceMetricsCaptor
- Parameters:
name
- the name.- Returns:
- the builder.
-
gaugeBuilder
Description copied from interface:MetricsCaptor
Create a gauge builder for a gauge with the provided parameters.- Specified by:
gaugeBuilder
in 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:MetricsCaptor
Start a sample collection.- Specified by:
start
in interfaceMetricsCaptor
- Returns:
- the sample.
-
removeMeter
Description copied from interface:MetricsCaptor
Remove a meter facade.- Specified by:
removeMeter
in interfaceMetricsCaptor
- Parameters:
facade
- the facade to remove.- Returns:
- the removed facade, or null.
-