@RequiresMetrics @Requires(property="micronaut.metrics.binders.kafka.enabled", value="true", defaultValue="true") @Context public class KafkaProducerMetrics extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaConsumerConfiguration>, io.micrometer.core.instrument.binder.MeterBinder, java.io.Closeable
Modifier and Type | Class and Description |
---|---|
static class |
KafkaProducerMetrics.Reporter
A
MetricsReporter that binds metrics to micrometer. |
Constructor and Description |
---|
KafkaProducerMetrics() |
Modifier and Type | Method and Description |
---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
void |
close() |
AbstractKafkaConsumerConfiguration |
onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaConsumerConfiguration> event) |
public AbstractKafkaConsumerConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaConsumerConfiguration> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaConsumerConfiguration>
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
bindTo
in interface io.micrometer.core.instrument.binder.MeterBinder
@PreDestroy public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable