@Internal
public class ConsumerKafkaMetricsReporter
extends java.lang.Object
MetricsReporter
class for consumer metrics.Constructor and Description |
---|
ConsumerKafkaMetricsReporter() |
Modifier and Type | Method and Description |
---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
protected java.lang.Object |
clone() |
void |
close()
Method to close bean.
|
void |
configure(java.util.Map<java.lang.String,?> configs) |
protected java.util.Set<java.lang.String> |
getIncludedTags()
The tags to include in the gauge.
|
protected java.lang.String |
getMetricPrefix()
Abstract method to implement with the metric prefix for the reporter.
|
void |
init(java.util.List<org.apache.kafka.common.metrics.KafkaMetric> metrics) |
void |
metricChange(org.apache.kafka.common.metrics.KafkaMetric metric) |
void |
metricRemoval(org.apache.kafka.common.metrics.KafkaMetric metric) |
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected java.lang.String getMetricPrefix()
@PreDestroy public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.kafka.common.metrics.MetricsReporter
public void bindTo(@NonNull io.micrometer.core.instrument.MeterRegistry registry)
bindTo
in interface io.micrometer.core.instrument.binder.MeterBinder
public void init(java.util.List<org.apache.kafka.common.metrics.KafkaMetric> metrics)
init
in interface org.apache.kafka.common.metrics.MetricsReporter
public void metricChange(org.apache.kafka.common.metrics.KafkaMetric metric)
metricChange
in interface org.apache.kafka.common.metrics.MetricsReporter
public void metricRemoval(org.apache.kafka.common.metrics.KafkaMetric metric)
metricRemoval
in interface org.apache.kafka.common.metrics.MetricsReporter
public void configure(java.util.Map<java.lang.String,?> configs)
configure
in interface org.apache.kafka.common.Configurable
protected java.util.Set<java.lang.String> getIncludedTags()