Skip to content

Commit

Permalink
Update property name
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Valeri <[email protected]>
  • Loading branch information
fvaleri committed Jan 17, 2025
1 parent 1d62574 commit ddabfb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/docker/kafka_bridge_config_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ EOF
if [ -n "$KAFKA_BRIDGE_METRICS_JMX_CONFIG" ]; then
METRICS_JMX_PROPERTIES=$(cat <<EOF
#JMX Exporter configuration
bridge.metrics.jmx.exporter.config.path=${KAFKA_BRIDGE_METRICS_JMX_CONFIG}
bridge.metrics.exporter.config.path=${KAFKA_BRIDGE_METRICS_JMX_CONFIG}
EOF
)
fi
Expand Down
2 changes: 1 addition & 1 deletion config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bridge.id=my-bridge
# uncomment the following line to enable JMX Exporter metrics, check the documentation for more details
#bridge.metrics=jmxPrometheusExporter
# optionally, you can also set a custom configuration file
#bridge.metrics.jmx.exporter.config.path=/path/to/my-jmx-exporter-config.yaml
#bridge.metrics.exporter.config.path=/path/to/my-exporter-config.yaml

# uncomment the following lines to enable Strimzi Reporter metrics, check the documentation for more details
#bridge.metrics=strimziMetricsReporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Enable metrics for the Kafka Bridge by setting the `bridge.metrics` configuratio
bridge.metrics=jmxPrometheusExporter
----
+
Optionally, you can set a custom JMX Exporter configuration file using the `bridge.metrics.jmx.exporter.config.path` property.
Optionally, you can set a custom JMX Exporter configuration file using the `bridge.metrics.exporter.config.path` property.
If this is not set, a default configuration will be applied.

. Run the Kafka Bridge script to enable metrics.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testJmxExporterMetricsType() {
"bridge.id", "my-bridge",
"kafka.bootstrap.servers", "localhost:9092",
"bridge.metrics", "jmxPrometheusExporter",
"bridge.metrics.jmx.exporter.config.path", configFilePah,
"bridge.metrics.exporter.config.path", configFilePah,
"http.host", "0.0.0.0",
"http.port", "8080"
);
Expand Down

0 comments on commit ddabfb1

Please sign in to comment.