-
Notifications
You must be signed in to change notification settings - Fork 121
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 Strimzi Metrics Reporter
This patch adds support for metrics types configuration, integrating the Strimzi Metrics Reporter, and custom Prometheus JMX Exporter configuration. The custom configuration feature is needed for Cluster Operator integration, but it can also be leveraged by standalone users. See Proposal 43 for more details. Signed-off-by: Federico Valeri <[email protected]>
- Loading branch information
Showing
26 changed files
with
828 additions
and
228 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
33 changes: 33 additions & 0 deletions
33
documentation/modules/proc-configuring-kafka-bridge-jmx-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,33 @@ | ||
[id='proc-configuring-kafka-bridge-jmx-metrics-{context}'] | ||
= Configuring JMX Exporter 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 `jmxPrometheusExporter`. | ||
+ | ||
.Configuration for enabling metrics | ||
|
||
[source,properties] | ||
---- | ||
bridge.metrics=jmxPrometheusExporter | ||
---- | ||
+ | ||
Optionally, you can set a custom JMX Exporter configuration using the `bridge.metrics.exporter.config.path` property. | ||
If not set, a default embedded configuration file will be used. | ||
|
||
. 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. |
30 changes: 0 additions & 30 deletions
30
documentation/modules/proc-configuring-kafka-bridge-metrics.adoc
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
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,36 @@ | ||
[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 | ||
---- | ||
+ | ||
Optionally, you can set a comma-separated list of regexes used to filter exposed metrics using the `kafka.prometheus.metrics.reporter.allowlist` property. | ||
If not set, all available metrics will be exposed. | ||
+ | ||
You can add any plugin configuration to the Bridge properties file using the `kafka.` prefix. | ||
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
Oops, something went wrong.