Monitoring MongoDB CDC Source Connector for Confluent Cloud
The MongoDB CDC Source connector exposes metrics through the Confluent Cloud Metrics API to assist with connector monitoring and troubleshooting.
Connector metrics
The MongoDB CDC Source connector provides two metric types:
All metrics share the prefix
io.confluent.kafka.connect/mongodb_cdc_source_connector_.
The tables below list only the metric suffix.
Snapshot metrics
Snapshot metrics help you monitor the connector during snapshot operations. These metrics are only available if a snapshot is currently active or if the connector has performed a snapshot since its last start.
Metric |
Type |
Description |
|---|---|---|
|
int |
Whether the snapshot is running. Values: |
|
int |
Whether the snapshot is complete. Values: |
|
int |
Whether the snapshot was aborted. Values: |
|
long |
The number of milliseconds since the last snapshot event was recorded. |
|
long |
The total number of events the connector has processed since its last start or reset. |
|
long |
The total number of seconds that the snapshot has taken so far, even if not complete. |
|
long |
The total paused duration of the snapshot, in seconds. |
|
long |
The number of disconnects by the connector during the snapshot. |
Streaming metrics
Streaming metrics help you monitor the connector when streaming changes from the database.
Metric |
Type |
Description |
|---|---|---|
|
int |
Whether the connector is connected to the database
server. Values: |
|
long |
The number of milliseconds since the last streaming event was recorded. |
|
long |
The total number of data change events reported by the source database since the connector was last started or since a metrics reset. |
|
long |
The number of events filtered out based on the include or exclude list rules configured in the connector. |
|
long |
The number of processed transactions that were committed. |
|
long |
The number of times the connector disconnected. |
|
long |
The number of primary elections observed by the connector. |
|
long |
The number of milliseconds between the timestamp of the last change event and the time the connector processed it. The value incorporates any clock differences between the machines where the database server and the connector are running. |