Spring kafka metrics list. Spring Cloud Stream Kafka Streams binder provides Kafka Streams metri...
Spring kafka metrics list. Spring Cloud Stream Kafka Streams binder provides Kafka Streams metrics which can be exported through a Micrometer MeterRegistry. Feb 21, 2022 · We have a spring boot microservice using spring-kafka. Jan 30, 2024 · In this tutorial, we’ll explore how to track key performance metrics in Kafka, focusing on what metrics are important and how to access them with practical examples. Spring Boot’s StreamBuilderFactoryBeanCustomizer has been removed in favor of Spring Kafka’s StreamsBuilderFactoryBeanConfigurer. Jul 8, 2025 · With Spring Kafka and Micrometer Observation, you can effectively trace, monitor, and analyze Kafka producer and consumer behavior. There are a couple of Kafka listeners and producers and the Kafka related metrics are successfully presented at the actuator endpoint. Micrometer Observation Documentation Observability - Metrics Below you can find a list of all metrics declared by this project. Needless to say, we can explore each of these metrics by appending its name to the path. Feb 23, 2023 · This article discusses how you can actively monitor Apache Kafka using JMX and the JmxTool that is available in your installation. Add distributed tracing to complete your observability stack. Apr 1, 2021 · How Kafka consumers and Kafka Streams status and details can be used for monitoring in a Spring Boot application using Actuator health endpoint. Jul 30, 2024 · Viewing metrics collected in Spring Kafka Let’s start by looking at a Spring Boot application with a simple Spring Kafka producer and consumer, similar to those described in the Spring Kafka This class is a super for the mentioned above MicrometerConsumerListener, MicrometerProducerListener and KafkaStreamsMicrometerListener. Kafka Metrics Auto-configuration registers a MicrometerConsumerListener and MicrometerProducerListener for the auto-configured consumer factory and producer factory, respectively. Take a look at the native metrics exposed by Apache Kafka for both producers and consumers, which offer valuable insights into performance, throughput, errors, and latency and those augmented by Spring. 1 Confluent Platform with KRaft and 4 brokers (kafka1, kafka2, kafka3, kafka4) 1 kafka application implemented with Spring to fetch producer and consumer metrics 1 kafka lag exporter 1 grafana 1 prometheus To add more use cases, we are leveraging the docker profiles. The class needs to be extended and its bindClient() and unbindClient() API have to be called to connect Kafka client metrics with a Micrometer collector. This guide describes the Apache Kafka implementation of the Spring Cloud Stream Binder. . Connect metrics Kafka Streams metrics To monitor these metrics with Docker, see Monitoring with Docker Deployments. Jul 8, 2025 · Spring kafka micrometer: Monitor and trace Spring Kafka apps using Micrometer for metrics, observability, and insights. It contains information about its design, usage, and configuration options, as well as information on how the Stream Cloud Stream concepts map onto Apache Kafka specific constructs. sh --profile replicator. At the end of this tutorial, you will be able to collect key metrics to troubleshoot and monitor your Kafka cluster. In addition, this guide explains the Kafka Streams binding capabilities of Spring Cloud Stream. Oct 12, 2025 · Explore the monitoring capabilities provided by Spring Kafka using Micrometer and Spring Boot Actuator. Oct 12, 2025 · To dive deeper, we can find a comprehensive list of all Kafka producer metrics in the Apache Kafka documentation. Dec 19, 2025 · A Kafka Streams instance contains all the producer and consumer metrics as well as additional metrics specific to Streams. However, it can be used for any Kafka client use-cases. Example, to run replicator scenario, run start. Find metrics for specific Confluent Platform and Kafka features in the following topics: Cluster linking metrics Connect metrics Kafka Streams metrics Alternatives to JMX Confluent offers some alternatives to using JMX monitoring. Feb 20, 2026 · Tags: Kafka, Kubernetes, Strimzi, StatefulSet, Deployment Description: Learn how to deploy Apache Kafka on Kubernetes using Strimzi operator for production-ready message streaming. When migrating to the new configurer, be aware that it implements Ordered with a default value of 0. The metrics have three recording levels: info, debug, and trace. This topic describes the Java Management Extensions (JMX) and Managed Beans (MBeans) that are enabled by default for Kafka and Confluent Platform to enable monitoring of your Kafka applications. pfmxdxtu9c7batyfzgboco6mojqq8ad3nuerurx8s0f3xmayijko6ni4lzkaqulegqvtnrpwrzemw5qfjcjsanoomtjorddga3hswkfp4