@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) |
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<KafkaMetric> metrics) |
void |
metricChange(KafkaMetric metric) |
void |
metricRemoval(KafkaMetric metric) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contextChange, reconfigurableConfigs, reconfigure, validateReconfiguration
protected java.lang.String getMetricPrefix()
@PreDestroy public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface 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<KafkaMetric> metrics)
init
in interface MetricsReporter
public void metricChange(KafkaMetric metric)
metricChange
in interface MetricsReporter
public void metricRemoval(KafkaMetric metric)
metricRemoval
in interface MetricsReporter
public void configure(java.util.Map<java.lang.String,?> configs)
configure
in interface Configurable
protected java.util.Set<java.lang.String> getIncludedTags()