public class KafkaStreamsBinderMetrics
extends Object
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