Skip to content

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

Merged
merged 4 commits into from
Jun 3, 2025

Conversation

mimaison
Copy link
Contributor

@mimaison mimaison commented May 21, 2025

Fixes #84

@mimaison mimaison added this to the 0.3.0 milestone May 21, 2025
--alter --entity-type brokers --entity-default \
--add-config "prometheus.metrics.reporter.allowlist=[kafka_controller.*,kafka_log.*]"
```

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be useful?

Copy link
Contributor Author

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

@mimaison mimaison requested a review from PaulRMellor May 26, 2025 07:34
Copy link
Contributor

@PaulRMellor PaulRMellor left a 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.*]"
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be useful?

mimaison and others added 3 commits June 2, 2025 11:27
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, ""),
Copy link
Contributor Author

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.

@mimaison mimaison merged commit 9a98ac7 into strimzi:main Jun 3, 2025
5 checks passed
@mimaison mimaison deleted the issue-84 branch June 3, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to update the allowlist for servers at runtime
2 participants