Class KafkaBinderMetrics

java.lang.Object
org.springframework.cloud.stream.binder.kafka.KafkaBinderMetrics
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder, AutoCloseable, EventListener, org.springframework.context.ApplicationListener<BindingCreatedEvent>

public class KafkaBinderMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder, org.springframework.context.ApplicationListener<BindingCreatedEvent>, AutoCloseable
Metrics for Kafka binder.
Author:
Henryk Konsek, Soby Chacko, Artem Bilan, Oleg Zhurakousky, Jon Schneider, Thomas Cheyney, Gary Russell, Lars Bilger, Tomek Szmytka, Nico Heller
  • Field Details

    • OFFSET_LAG_METRIC_NAME

      public static final String OFFSET_LAG_METRIC_NAME
      Offset lag micrometer metric name. This can be used for meter filtering.
      See Also:
  • Constructor Details

  • Method Details

    • setTimeout

      public void setTimeout(int timeout)
    • bindTo

      public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
      Specified by:
      bindTo in interface io.micrometer.core.instrument.binder.MeterBinder
    • onApplicationEvent

      public void onApplicationEvent(BindingCreatedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<BindingCreatedEvent>
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception