-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the Strimzi Metrics Reporter
This patch adds support for the Strimzi Metrics Reporter. Setting `bridge.metrics=jmxPrometheusExporter` enables the JMX Prometheus Exporter (equivalent to KAFKA_BRIDGE_METRICS_ENABLED=true). Setting `bridge.metrics=strimziMetricsReporter` enables the new Strimzi Metrics Reporter as Kafka plugin. When selecting the `strimziMetricsReporter`, you also need to add the plugin configuration as in the following example: ```sh bridge.metrics=strimziMetricsReporter kafka.metric.reporters=io.strimzi.kafka.metrics.KafkaPrometheusMetricsReporter kafka.prometheus.metrics.reporter.listener.enable=false kafka.prometheus.metrics.reporter.allowlist=.* ``` Signed-off-by: Federico Valeri <[email protected]>
- Loading branch information
Showing
25 changed files
with
723 additions
and
186 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
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
35 changes: 35 additions & 0 deletions
35
documentation/modules/proc-configuring-kafka-bridge-smr-metrics.adoc
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,35 @@ | ||
[id='proc-configuring-kafka-bridge-smr-metrics-{context}'] | ||
= Configuring Strimzi Metrics Reporter metrics | ||
|
||
[role="_abstract"] | ||
Enable metrics for the Kafka Bridge by setting the `bridge.metrics` configuration. | ||
|
||
.Prerequisites | ||
|
||
* xref:proc-downloading-kafka-bridge-{context}[The Kafka Bridge installation archive is downloaded]. | ||
|
||
.Procedure | ||
|
||
. Set the `bridge.metrics` configuration to `strimziMetricsReporter` and related configuration. | ||
+ | ||
.Configuration for enabling metrics | ||
|
||
[source,properties] | ||
---- | ||
bridge.metrics=strimziMetricsReporter | ||
kafka.metric.reporters=io.strimzi.kafka.metrics.KafkaPrometheusMetricsReporter | ||
kafka.prometheus.metrics.reporter.listener.enable=false | ||
kafka.prometheus.metrics.reporter.allowlist=.* | ||
---- | ||
+ | ||
See the https://github.com/strimzi/metrics-reporter[Strimzi Metrics Reporter documentation] for more details. | ||
|
||
. Run the Kafka Bridge script to enable metrics. | ||
+ | ||
.Running the Kafka Bridge to enable metrics | ||
[source,shell] | ||
---- | ||
./bin/kafka_bridge_run.sh --config-file=<path>/application.properties | ||
---- | ||
+ | ||
With metrics enabled, you can use `GET /metrics` with the `/metrics` endpoint to retrieve Kafka Bridge metrics in Prometheus format. |
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
Oops, something went wrong.