Observability and troubleshooting
Custom Message Queue for Apache Kafka connectors provide observability capabilities for monitoring instance, worker, and connector metrics. This topic also covers troubleshooting steps for connector failures.
Observability
Custom Message Queue for Apache Kafka connectors allow you to monitor metrics for Message Queue for Apache Kafka instances, workers, and connectors.
Log on to the EventBridge console. In the left-side navigation pane, click Event Streams.
- In the top navigation bar, select a region.
- On the Event Streams page, find the target custom connector for Message Queue for Apache Kafka, and click Details in the Actions column.
- In the left-side navigation pane, click Metric Monitoring.
- Click the ApsaraMQ for Kafka Instance Monitoring tab to view observability data for message production and consumption at the instance level.

- Click the Worker Monitoring tab to view resource consumption at the Serverless App Engine (SAE) application and instance levels. SAE runs the Kafka Connect workers, so its resource consumption directly reflects connector resource usage. The page provides a Resource Type drop-down list, where you can select Application or Instance, and a time range filter. The Application Monitoring section includes line charts for CPU Usage (%) and System Average Load (1 min) to track metric trends.
- Click the Connector Monitoring tab to check the status of Kafka Connect tasks. These metrics are provided by the Kafka Connect framework. If a task fails, detailed error information is displayed for troubleshooting. In the Tasks section, task counts are grouped by Total, RUNNING, FAILED, PAUSED, and UNASSIGNED. The table below shows the status and stack trace for each task in the State, TaskId, and Trace columns.
- Click the ApsaraMQ for Kafka Instance Monitoring tab to view observability data for message production and consumption at the instance level.
Troubleshooting
If a Message Queue for Apache Kafka connector fails to run, perform the following steps to troubleshoot the issue:
- On the event stream details page, click Overview in the left-side navigation pane.
- In the Basic Information section, click Running Exception to view the error type and details.
If the error message indicates that a Kafka Connect task failed, you can click the Diagnostics link to navigate to the Connector Monitoring page for details about the failed task.
- If the issue persists, log on to the SAE console for further debugging.
- On the event stream details page, click Overview in the left-side navigation pane.
- In the Worker Information section, click the instance name next to SAE Application to open the application details page in the SAE console.
- On the Basic Information page, click the Instance Deployment Information tab.
- In the Actions column of the instance, click Webshell to log in to the Kafka Connect running environment.
On the application details page, click the Instance Deployment Information tab, and find your instance.You can view the running logs of the connector in the /opt/kafka/logs/connect.log file to troubleshoot the issue.