Class 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 Detail

      • 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:
        Constant Field Values
    • Method Detail

      • 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>