-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference doc update for Kafka metrics (#4592)
- Loading branch information
1 parent
7f0d479
commit dbf23fe
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[[overview]] | ||
= Apache Kafka Metrics | ||
|
||
https://kafka.apache.org/[Apache Kafka] is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications. | ||
|
||
Below you can find an example of how to instrument Apache Kafka with Micrometer. | ||
|
||
Setting up instrumentation with Apache Kafka on the consumer side. | ||
|
||
[source,java,subs=+attributes] | ||
----- | ||
// Setting up and binding instrumentation | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/kafka/KafkaClientMetricsIntegrationTest.java[tags=consumer_setup, indent=0] | ||
----- | ||
|
||
Setting up instrumentation with Apache Kafka on the producer side. | ||
|
||
[source,java,subs=+attributes] | ||
----- | ||
// Setting up and binding instrumentation | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/kafka/KafkaClientMetricsIntegrationTest.java[tags=producer_setup, indent=0] | ||
----- | ||
|
||
Setting up instrumentation with Apache Kafka using Kafka Streams. | ||
|
||
[source,java,subs=+attributes] | ||
----- | ||
// Setting up, binding instrumentation and usage example | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/kafka/KafkaStreamsMetricsTest.java[tags=example, indent=0] | ||
----- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters