-
Notifications
You must be signed in to change notification settings - Fork 10
Document how to dynamically update the allowlist of brokers #90
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
Conversation
--alter --entity-type brokers --entity-default \ | ||
--add-config "prometheus.metrics.reporter.allowlist=[kafka_controller.*,kafka_log.*]" | ||
``` | ||
|
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.
Should we also include sample Java code demonstrating the Admin
API usage?
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.
It might be useful?
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 added an example
Signed-off-by: Mickael Maison <[email protected]>
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.
Looks good.
--alter --entity-type brokers --entity-default \ | ||
--add-config "prometheus.metrics.reporter.allowlist=[kafka_controller.*,kafka_log.*]" | ||
``` | ||
|
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.
It might be useful?
Co-authored-by: PaulRMellor <[email protected]> Signed-off-by: Mickael Maison <[email protected]>
Co-authored-by: PaulRMellor <[email protected]> Signed-off-by: Mickael Maison <[email protected]>
Signed-off-by: Mickael Maison <[email protected]>
@@ -113,7 +113,7 @@ public void testReconfigureAllowlist() throws Exception { | |||
|
|||
try (Admin admin = Admin.create(Map.of(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, broker.getBootstrapServers()))) { | |||
admin.incrementalAlterConfigs(Map.of( | |||
new ConfigResource(ConfigResource.Type.BROKER, String.valueOf(NODE_ID)), | |||
new ConfigResource(ConfigResource.Type.BROKER, ""), |
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.
Adjusted the code in the test to match the example. Using empty string applies the update to all brokers.
Fixes #84