-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the Strimzi Metrics Reporter #954
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not looked at the code yet. I left comments trying to understand how this will be used.
#bridge.metrics=jmxPrometheusExporter | ||
|
||
# uncomment the following lines to enable Strimzi Reporter metrics, check the documentation for more details | ||
#bridge.metrics=strimziMetricsReporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a configuration standpoint I would expect that users would just need to set bridge.metrics=strimziMetricsReporter
and maybe the allowlist and not set the other individual configurations kafka.prometheus.metrics.reporter.listener.enable
, kafka.metric.reporters
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it will work when using the Cluster Operator. Talking with @ppatierno, we agreed that, for the standalone Bridge, the user should be free to set all configurations through the properties file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. When bridge is running on bare metal / VM, it's the user to provide the application.properties file for the bridge with its configuration. The bridge doesn't have to change the properties file in any way enforcing other parameters which the user didn't set.
a211d27
to
9385323
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should go through a dedicated proposal first. The original proposal - https://github.com/strimzi/proposals/blob/main/064-prometheus-metrics-reporter.md - sadly didn't cover the bridge in sufficient depth and there will be some backward compatibility impact here or in the operators repo that needs to be carefully considered. A proposal would be the right place to discuss it and decide on the best approach.
I agree. Probably the backwards incompatible changes are mostly on the operator side, where we have to introduce |
4a47979
to
4d87ff9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left just some minor comments but I will review it again when the proposal is accepted (to avoid reviewing now something that will be changed later by the final proposal)
#bridge.metrics=jmxPrometheusExporter | ||
|
||
# uncomment the following lines to enable Strimzi Reporter metrics, check the documentation for more details | ||
#bridge.metrics=strimziMetricsReporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. When bridge is running on bare metal / VM, it's the user to provide the application.properties file for the bridge with its configuration. The bridge doesn't have to change the properties file in any way enforcing other parameters which the user didn't set.
4d87ff9
to
8b9e345
Compare
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]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Implementation of "Integrate Bridge with Metrics Reporter" proposal. Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
8b9e345
to
d0eedcd
Compare
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). Settingbridge.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:bridge.metrics=strimziMetricsReporter kafka.metric.reporters=io.strimzi.kafka.metrics.KafkaPrometheusMetricsReporter kafka.prometheus.metrics.reporter.listener.enable=false kafka.prometheus.metrics.reporter.allowlist=.*
See strimzi/proposals#143 for more details.