Skip to content

Commit f158eff

Browse files
committed
Document how to dynamically update the allowlist of brokers
Signed-off-by: Mickael Maison <[email protected]>
1 parent ef19540 commit f158eff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ kafka.metrics.reporters=io.strimzi.kafka.metrics.prometheus.ServerYammerMetricsR
4444
auto.include.jmx.reporter=false
4545
```
4646

47+
The `prometheus.metrics.reporter.allowlist` configuration of brokers and controllers can be updated at runtime using the `kafka-configs.sh` tool or the `incrementalAlterConfigs()` method from the `Admin` API. For example:
48+
49+
```sh
50+
./bin/kafka-configs.sh --bootstrap-server localhost:9092 \
51+
--alter --entity-type brokers --entity-default \
52+
--add-config "prometheus.metrics.reporter.allowlist=[kafka_controller.*,kafka_log.*]"
53+
```
54+
4755
### Kafka Clients
4856

4957
To use the reporter with Kafka producers, consumers or admin clients, add the following to your client configuration:

0 commit comments

Comments
 (0)