Skip to content

Commit

Permalink
rename beans => jmx metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
bcarter97 authored Oct 7, 2023
1 parent f4c735a commit 0195528
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ Then use the `tracingConsumer` as usual for receiving messages from the Kafka cl

The Kafka client exposes metrics via `org.apache.kafka.common.metrics.MetricsReporter` interface.
OpenTelemetry provides an implementation that bridges the metrics into OpenTelemetry. There are two
options for capturing metrics, manually instrumenting or configuring MBeans, both described below.
options for capturing metrics, manually instrumenting or configuring JMX Metrics, both described below.

#### Manual instrumentation

To use, merge the config properties
from `KafkaTelemetry.create(OpenTelemetry).metricConfigProperties()`
with the configuration used when creating your producer or consumer.

#### Configuring MBeans
#### Configuring JMX Metrics

the `kafka.consumer` and `kafka.producer` MBeans can be configured as described
the `kafka.consumer` and `kafka.producer` JMX Metrics can be configured as described
in [opentelemetry-java-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/jmx-metrics/javaagent#configuration-files),
e.g.

Expand Down

0 comments on commit 0195528

Please sign in to comment.