Skip to content

Commit 293ab7c

Browse files
mimaisonPaulRMellorkatheris
authored
Add instructions about MirrorMaker to the README (#83)
Signed-off-by: Mickael Maison <[email protected]> Signed-off-by: Mickael Maison <[email protected]> Co-authored-by: PaulRMellor <[email protected]> Co-authored-by: Kate Stanley <[email protected]>
1 parent cd810e6 commit 293ab7c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ consumer.prometheus.metrics.reporter.listener=http://:8081
8686
consumer.auto.include.jmx.reporter=false
8787
```
8888

89+
### MirrorMaker
90+
91+
The Source and Checkpoint MirrorMaker connectors expose [metrics](https://kafka.apache.org/documentation/#georeplication-monitoring). To collect these metrics with the reporter, add the metrics-reporter configurations to the connector configurations. Set `prometheus.metrics.reporter.listener.enable` to `false` so the MirrorMaker metrics are automatically exposed via the listener of the Connect runtime.
92+
93+
For example:
94+
```json
95+
{
96+
"name": "source",
97+
"connector.class": "org.apache.kafka.connect.mirror.MirrorSourceConnector",
98+
...
99+
100+
"metric.reporters": "io.strimzi.kafka.metrics.prometheus.ClientMetricsReporter",
101+
"prometheus.metrics.reporter.listener.enable": "false"
102+
}
103+
```
104+
89105
## Accessing Metrics
90106

91107
Metrics are exposed on the configured listener on the `GET /metrics` endpoint. For example, by default this is `http://localhost:8080/metrics`.

0 commit comments

Comments
 (0)