Class TomcatMetricsBinder

java.lang.Object
org.springframework.boot.actuate.metrics.web.tomcat.TomcatMetricsBinder
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>

public class TomcatMetricsBinder extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>, org.springframework.beans.factory.DisposableBean
Binds TomcatMetrics in response to the ApplicationStartedEvent.
Since:
2.1.0
  • 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

      public void onApplicationEvent(org.springframework.boot.context.event.ApplicationStartedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean