Class KafkaStreamsBinderMetrics
java.lang.Object
org.springframework.cloud.stream.binder.kafka.streams.KafkaStreamsBinderMetrics
Kafka Streams binder metrics implementation that exports the metrics available
through
KafkaStreams.metrics()
into a micrometer MeterRegistry
.
Boot 2.2 users need to rely on this class for the metrics instead of direct support from Micrometer.
Micrometer added Kafka Streams metrics support in 1.4.0 which Boot 2.3 includes.
Therefore, the users who are on Boot 2.2, need to rely on these metrics.
For users who are on 2.3 Boot, this class won't be activated (See the configuration for the various
conditionals used).
For the most part, this class is a copy of the Micrometer Kafka Streams support that was added in version 1.4.0.
We will keep this class, as long as we support Boot 2.2.x.- Since:
- 3.0.0
- Author:
- Soby Chacko
-
Constructor Summary
ConstructorDescriptionKafkaStreamsBinderMetrics
(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetrics
(Set<org.springframework.kafka.config.StreamsBuilderFactoryBean> streamsBuilderFactoryBeans) void
-
Constructor Details
-
KafkaStreamsBinderMetrics
public KafkaStreamsBinderMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details