Skip to content

Commit ce4ef5e

Browse files
committed
Merge branch '2.3.x'
Closes gh-21918
2 parents 554971d + 7500f0f commit ce4ef5e

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
189189
"spring-data-rest-version": versionConstraints["org.springframework.data:spring-data-rest-core"],
190190
"spring-data-solr-version": versionConstraints["org.springframework.data:spring-data-solr"],
191191
"spring-framework-version": versionConstraints["org.springframework:spring-core"],
192+
"spring-kafka-version": versionConstraints["org.springframework.kafka:spring-kafka"],
192193
"spring-integration-version": versionConstraints["org.springframework.integration:spring-integration-core"],
193194
"spring-security-version": versionConstraints["org.springframework.security:spring-security-core"],
194195
"spring-webservices-version": versionConstraints["org.springframework.ws:spring-ws-core"]

spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
:spring-initializr-docs: https://docs.spring.io/initializr/docs/current/reference/html
8787
:spring-integration: https://spring.io/projects/spring-integration
8888
:spring-integration-docs: https://docs.spring.io/spring-integration/docs/{spring-integration-version}/reference/html/
89+
:spring-kafka-docs: https://docs.spring.io/spring-kafka/docs/{spring-kafka-version}/reference/html/
8990
:spring-restdocs: https://spring.io/projects/spring-restdocs
9091
:spring-security: https://spring.io/projects/spring-security
9192
:spring-security-docs: https://docs.spring.io/spring-security/site/docs/{spring-security-version}/reference/html5/

spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ Spring Boot registers the following core metrics when applicable:
18201820
** Number of classes loaded/unloaded
18211821
* CPU metrics
18221822
* File descriptor metrics
1823-
* Kafka consumer metrics
1823+
* Kafka consumer and producer metrics
18241824
* Log4j2 metrics: record the number of events logged to Log4j2 at each level
18251825
* Logback metrics: record the number of events logged to Logback at each level
18261826
* Uptime metrics: report a gauge for uptime and a fixed gauge representing the application's absolute start time
@@ -2069,6 +2069,13 @@ Auto-configuration will enable the instrumentation of all available RabbitMQ con
20692069

20702070

20712071

2072+
[[production-ready-metrics-kafka]]
2073+
==== Kafka Metrics
2074+
Auto-configuration will register a `MicrometerConsumerListener` and `MicrometerProducerListener` for the auto-configured consumer factory and producer factory respectively.
2075+
For more details refer to {spring-kafka-docs}#micrometer-native[Micrometer Native Metrics] section of the Spring Kafka documentation.
2076+
2077+
2078+
20722079
[[production-ready-metrics-custom]]
20732080
=== Registering custom metrics
20742081
To register custom metrics, inject `MeterRegistry` into your component, as shown in the following example:

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5728,7 +5728,7 @@ IMPORTANT: Properties set in this way override any configuration item that Sprin
57285728
==== Testing with Embedded Kafka
57295729
Spring for Apache Kafka provides a convenient way to test projects with an embedded Apache Kafka broker.
57305730
To use this feature, annotate a test class with `@EmbeddedKafka` from the `spring-kafka-test` module.
5731-
For more information, please see the Spring for Apache Kafka https://docs.spring.io/spring-kafka/docs/current/reference/html/#embedded-kafka-annotation[reference manual].
5731+
For more information, please see the Spring for Apache Kafka {spring-kafka-docs}#embedded-kafka-annotation[reference manual].
57325732

57335733
To make Spring Boot auto-configuration work with the aforementioned embedded Apache Kafka broker, you need to remap a system property for embedded broker addresses (populated by the `EmbeddedKafkaBroker`) into the Spring Boot configuration property for Apache Kafka.
57345734
There are several ways to do that:

0 commit comments

Comments
 (0)