forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OTel java agent with JMX Metric Insights to kafka (open-telemetry…
…#654) * Add otel agent with JMX metric insights to kafka Signed-off-by: svrnm <[email protected]> * Increase memory limit for kafka * Remove pb files Signed-off-by: svrnm <[email protected]> * Add docs for kafka service Signed-off-by: svrnm <[email protected]> * Revert removal of demo.proto Signed-off-by: svrnm <[email protected]> * Update CHANGELOG Signed-off-by: svrnm <[email protected]> * Fix markdownlint error Signed-off-by: svrnm <[email protected]> Signed-off-by: svrnm <[email protected]> Co-authored-by: Carter Socha <[email protected]> Co-authored-by: Pierre Tessier <[email protected]>
- Loading branch information
1 parent
565c514
commit ccd82b6
Showing
4 changed files
with
35 additions
and
2 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
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,21 @@ | ||
# Kafka | ||
|
||
This is used as a message queue service to connect the checkout service with | ||
the accounting and fraud detection services. | ||
|
||
[Kafka service source](../../src/kafka/) | ||
|
||
## Auto-instrumentation | ||
|
||
This service relies on the OpenTelemetry Java Agent and the built in | ||
[JMX Metric Insight Module](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/jmx-metrics/javaagent) | ||
to capture [kafka broker metrics](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/jmx-metrics/javaagent/kafka-broker.md) | ||
and send them off to the collector via OTLP. | ||
|
||
The agent is passed into the process using the `-javaagent` command line | ||
argument. Command line arguments are added through the `KAFKA_OPTS` | ||
in the `Dockerfile`. | ||
|
||
```dockerfile | ||
ENV KAFKA_OPTS="-javaagent:/tmp/opentelemetry-javaagent.jar -Dotel.jmx.target.system=kafka-broker" | ||
``` |
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