-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(MirrorMaker): improve configuration concepts
Explained the different configuration layers and moved monitoring instructions to howto section. [DOC-1169]
- Loading branch information
Showing
3 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/products/kafka/kafka-mirrormaker/howto/monitor-replication-execution.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Monitor replication execution | ||
--- | ||
|
||
Apache Kafka® MirrorMaker 2 leverages Kafka Connect to help with state management | ||
and monitoring. | ||
|
||
## Tips | ||
|
||
To ensure that the replication is up-to-date with message processing, check this: | ||
|
||
1. **Consumer lag metric**: Monitor the `kafka.consumer_lag` metric. | ||
|
||
1. **Dashboard metrics**: If MirrorMaker 2 stops adding records to a | ||
topic, the `jmx.kafka.connect.mirror.record_count` metric stops | ||
increasing, showing a flat line on the dashboard. | ||
|
||
1. **Retrieve latest messages with \`kt\`**: Use | ||
[kt](https://github.com/fgeller/kt) to retrieve the latest messages | ||
from all partitions with the following command: | ||
|
||
``` | ||
kt consume -auth ./mykafka.conf \ | ||
-brokers SERVICE-PROJECT.aivencloud.com:PORT \ | ||
-topic topicname -offsets all=newest:newest | \ | ||
jq -c -s 'sort_by(.partition) | .[] | \ | ||
{partition: .partition, value: .value, timestamp: .timestamp}' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters