@RequiresMetrics @Context @Requires(property="micronaut.metrics.binders.kafka.enabled", value="true", defaultValue="true") public class KafkaConsumerMetrics extends Object implements BeanCreatedEventListener<AbstractKafkaConsumerConfiguration>, io.micrometer.core.instrument.binder.MeterBinder, Closeable
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
KafkaConsumerMetrics.Reporter
A  
MetricsReporter that binds metrics to micrometer. | 
| Constructor and Description | 
|---|
KafkaConsumerMetrics()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
bindTo(io.micrometer.core.instrument.MeterRegistry registry)  | 
void | 
close()  | 
AbstractKafkaConsumerConfiguration | 
onCreated(BeanCreatedEvent<AbstractKafkaConsumerConfiguration> event)
Fired when a bean is created and all  
PostConstruct initialization hooks have been
 called. | 
public AbstractKafkaConsumerConfiguration onCreated(BeanCreatedEvent<AbstractKafkaConsumerConfiguration> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
 called.onCreated in interface BeanCreatedEventListener<AbstractKafkaConsumerConfiguration>event - The bean created eventpublic void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
bindTo in interface io.micrometer.core.instrument.binder.MeterBinder@PreDestroy public void close()
close in interface Closeableclose in interface AutoCloseable