Class KafkaMetricsAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.KafkaMetricsAutoConfiguration
@AutoConfiguration(before=KafkaAutoConfiguration.class,
after={MetricsAutoConfiguration.class,CompositeMeterRegistryAutoConfiguration.class})
@ConditionalOnClass({io.micrometer.core.instrument.binder.kafka.KafkaClientMetrics.class,org.springframework.kafka.core.ProducerFactory.class})
@ConditionalOnBean(io.micrometer.core.instrument.MeterRegistry.class)
public class KafkaMetricsAutoConfiguration
extends Object
Auto-configuration for Kafka metrics.
- Since:
- 2.1.0
- Author:
- Andy Wilkinson, Stephane Nicoll, EddĂș MelĂ©ndez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkafkaConsumerMetrics
(io.micrometer.core.instrument.MeterRegistry meterRegistry) kafkaProducerMetrics
(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Constructor Details
-
KafkaMetricsAutoConfiguration
public KafkaMetricsAutoConfiguration()
-
-
Method Details
-
kafkaProducerMetrics
@Bean public DefaultKafkaProducerFactoryCustomizer kafkaProducerMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
kafkaConsumerMetrics
@Bean public DefaultKafkaConsumerFactoryCustomizer kafkaConsumerMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-