Class KafkaConsumerMetrics

java.lang.Object
io.micrometer.core.instrument.binder.kafka.KafkaConsumerMetrics
All Implemented Interfaces:
MeterBinder, java.lang.AutoCloseable

@Incubating(since="1.1.0")
@NonNullApi
@NonNullFields
@Deprecated
public class KafkaConsumerMetrics
extends java.lang.Object
implements MeterBinder, java.lang.AutoCloseable
Deprecated.
use KafkaClientMetrics instead since 1.4.0
Kafka consumer metrics collected from metrics exposed by Kafka consumers via the MBeanServer. Metrics are exposed at each consumer thread.

Metric names here are based on the naming scheme as it was last changed in Kafka version 0.11.0. Metrics for earlier versions of Kafka will not report correctly.

Since:
1.1.0
See Also:
Kakfa monitoring documentation
  • Constructor Summary

    Constructors 
    Constructor Description
    KafkaConsumerMetrics()
    Deprecated.
     
    KafkaConsumerMetrics​(java.lang.Iterable<Tag> tags)
    Deprecated.
     
    KafkaConsumerMetrics​(javax.management.MBeanServer mBeanServer, java.lang.Iterable<Tag> tags)
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    void bindTo​(MeterRegistry registry)
    Deprecated.
     
    void close()
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • bindTo

      public void bindTo​(MeterRegistry registry)
      Deprecated.
      Specified by:
      bindTo in interface MeterBinder
    • close

      public void close()
      Deprecated.
      Specified by:
      close in interface java.lang.AutoCloseable