Class TomcatMetricsBinder
java.lang.Object
org.springframework.boot.actuate.metrics.web.tomcat.TomcatMetricsBinder
- All Implemented Interfaces:
EventListener
,DisposableBean
,ApplicationListener<ApplicationStartedEvent>
public class TomcatMetricsBinder
extends Object
implements ApplicationListener<ApplicationStartedEvent>, DisposableBean
Binds
TomcatMetrics
in response to the ApplicationStartedEvent
.- Since:
- 2.1.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionTomcatMetricsBinder
(io.micrometer.core.instrument.MeterRegistry meterRegistry) TomcatMetricsBinder
(io.micrometer.core.instrument.MeterRegistry meterRegistry, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
-
Constructor Details
-
TomcatMetricsBinder
public TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
TomcatMetricsBinder
public TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry, Iterable<io.micrometer.core.instrument.Tag> tags)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<ApplicationStartedEvent>
-
destroy
public void destroy()- Specified by:
destroy
in interfaceDisposableBean
-