@Internal
public class ProducerKafkaMetricsReporter
extends java.lang.Object
MetricsReporter class for producer metrics.| Constructor and Description |
|---|
ProducerKafkaMetricsReporter() |
| 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, waitcontextChange, reconfigurableConfigs, reconfigure, validateReconfigurationprotected java.lang.String getMetricPrefix()
@PreDestroy public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface MetricsReporterpublic void bindTo(@NonNull
io.micrometer.core.instrument.MeterRegistry registry)
bindTo in interface io.micrometer.core.instrument.binder.MeterBinderpublic void init(java.util.List<KafkaMetric> metrics)
init in interface MetricsReporterpublic void metricChange(KafkaMetric metric)
metricChange in interface MetricsReporterpublic void metricRemoval(KafkaMetric metric)
metricRemoval in interface MetricsReporterpublic void configure(java.util.Map<java.lang.String,?> configs)
configure in interface Configurableprotected java.util.Set<java.lang.String> getIncludedTags()