-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 (#654)
* Add otel agent with JMX metric insights to kafka Signed-off-by: svrnm <neumanns@cisco.com> * Increase memory limit for kafka * Remove pb files Signed-off-by: svrnm <neumanns@cisco.com> * Add docs for kafka service Signed-off-by: svrnm <neumanns@cisco.com> * Revert removal of demo.proto Signed-off-by: svrnm <neumanns@cisco.com> * Update CHANGELOG Signed-off-by: svrnm <neumanns@cisco.com> * Fix markdownlint error Signed-off-by: svrnm <neumanns@cisco.com> Signed-off-by: svrnm <neumanns@cisco.com> Co-authored-by: Carter Socha <43380952+cartersocha@users.noreply.github.com> Co-authored-by: Pierre Tessier <pierre@pierretessier.com>
- Loading branch information
1 parent
c5e8196
commit e4d34c7
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