@Internal public abstract class AbstractKafkaMetricsReporter extends java.lang.Object implements MetricsReporter, io.micrometer.core.instrument.binder.MeterBinder, java.io.Closeable
MetricsReporter that binds metrics to micrometer.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLIENT_ID_TAG |
static java.lang.String |
NODE_ID_TAG |
static java.lang.String |
TOPIC_TAG |
| Constructor and Description |
|---|
AbstractKafkaMetricsReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
void |
close() |
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 abstract 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, validateReconfigurationpublic static final java.lang.String CLIENT_ID_TAG
public static final java.lang.String TOPIC_TAG
public static final java.lang.String NODE_ID_TAG
public 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 Configurable@PreDestroy public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface MetricsReporterprotected java.util.Set<java.lang.String> getIncludedTags()
protected abstract java.lang.String getMetricPrefix()