Class ConsumerKafkaMetricsReporter
java.lang.Object
io.micronaut.configuration.kafka.metrics.AbstractKafkaMetricsReporter
io.micronaut.configuration.kafka.metrics.ConsumerKafkaMetricsReporter
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
,Closeable
,AutoCloseable
,Configurable
,MetricsReporter
,Reconfigurable
A
MetricsReporter
class for consumer metrics.-
Field Summary
Fields inherited from class io.micronaut.configuration.kafka.metrics.AbstractKafkaMetricsReporter
CLIENT_ID_TAG, NODE_ID_TAG, TOPIC_TAG
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.configuration.kafka.metrics.AbstractKafkaMetricsReporter
bindTo, configure, init, metricChange, metricRemoval
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.kafka.common.metrics.MetricsReporter
contextChange, reconfigurableConfigs, reconfigure, validateReconfiguration
-
Field Details
-
PARTITION_TAG
- See Also:
-
-
Constructor Details
-
ConsumerKafkaMetricsReporter
public ConsumerKafkaMetricsReporter()
-
-
Method Details
-
getMetricPrefix
Abstract method to implement with the metric prefix for the reporter.- Specified by:
getMetricPrefix
in classAbstractKafkaMetricsReporter
- Returns:
- prefix name
-
getIncludedTags
Description copied from class:AbstractKafkaMetricsReporter
The tags to include in the gauge. Defaults to just the client-id.- Overrides:
getIncludedTags
in classAbstractKafkaMetricsReporter
- Returns:
- The tags to include
-
close
@PreDestroy public void close()Method to close bean. This must remain here for metrics to continue to function correctly for some reason?!.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceMetricsReporter
- Overrides:
close
in classAbstractKafkaMetricsReporter
-