Kafka Connect monitoring with Topologix
Data & Storage
One Kafka Connect cluster, read-only, through a proxy agent: every connector with its state, worker, plugin and version, its tasks and their state, the first line of a failed connector's or task's error, the topics each connector used, and — for Debezium connectors — the source database (linked to the database you monitor and its replication slot), the snapshot progress and the streaming lag. AWS MSK Connect is read through the AWS API (connector state only). It shows under its Kafka cluster on Infrastructure → Messaging, and a Debezium connector also shows on its source database's Replication block.
Requirements
- A proxy agent 1.365.0 or later that reaches the Connect REST API (port 8083 by default) and, for the Debezium metrics, each worker's Jolokia agent (port 8778).
- The Kafka integration of the cluster the Connect workers use (owned by the same account — its credential is never copied).
- Authentication to the REST API, one of: none · basic (username + password) · bearer token · mTLS (client certificate + key); an optional CA, verification on by default. The read is GET-only:
/,/connectors?expand=status&expand=info,/connectors/{name}/topics,/connector-plugins— a read-only Connect user suffices. - For Debezium metrics: the Jolokia JVM agent on every Connect worker (Debezium's images:
ENABLE_JOLOKIA=true; otherwise-javaagent:jolokia-agent-jvm.jar=port=8778,host=0.0.0.0inKAFKA_OPTS). Without it the Debezium connectors show their status only — said on the page. - AWS MSK Connect: the region and an identity allowed
kafkaconnect:ListConnectors(static keys, or the proxy host's AWS credentials).
1 · Set up the integration
- Open the Integrations pageClick Integrations in the toolbar and pick Kafka Connect under Data & Storage.
- Link and connectPick the Kafka integration, the Platform (Kafka Connect REST — Apache, Confluent Platform, Strimzi, Debezium images — or AWS MSK Connect), then the REST URL (
http://connect1:8083) and its Authentication, or for MSK Connect the AWS region, an optional connector-name prefix and the keys. Pick the proxy agent under Connect via proxy. - Debezium metrics (optional)Add the Jolokia URL of each worker, one per line (
http://connect1:8778/jolokia), and its credential if the agent has one. The reader asks each worker ONE bulk request with three pattern reads:debezium.*:type=connector-metrics,context=streaming,*,…context=snapshot,*andkafka.connect:type=connector-task-metrics,*; a Debezium MBean'sserver=is matched to the connector'stopic.prefix(database.server.nameon Debezium 1.x). - Reads and thresholds (optional)Read every 60 s (60–3600), Connectors read ≤ 500 (10–2,000) and the findings' thresholds — each field shows its default; leave it empty to keep the default (the page then says "default", else "this integration").
- Create, then verifyTest reads the cluster once: "Kafka Connect 3.7.0 (Kafka cluster …) — 4 connectors, 1 failed task, 2 Debezium · Jolokia 2/2 worker(s)". A refused credential, an unreachable worker or a bad URL is said in one sentence.
2 · Add it to a flow
- Open Infrastructure → MessagingPick the Kafka cluster: its Linked block lists the Connect cluster → its connectors → their tasks, and per Debezium connector the Debezium block (source database, snapshot, streaming lag, and the PostgreSQL slot's retained WAL side by side with the connector's state).
What is read — and what never leaves the proxy
The connector config: an allow-list
Only these keys leave the proxy: connector.class, tasks.max, topic.prefix, database.hostname, database.port, database.dbname, database.names, slot.name, publication.name, plugin.name, database.server.id, database.server.name, table.include.list, collection.include.list, database.include.list, schema.include.list, topics, topics.regex, snapshot.mode. Everything else — database.password, any *.password, sasl.jaas.config, key stores, converter credentials, connection URLs — is dropped on the proxy before the answer is sent.
A failed task's error
Only its FIRST line is kept, with credentials (password=, token=, sasl.jaas.config …), URL user-info, IP addresses, host:port pairs and the connector's own database host masked — before it is stored, shown or sent to the assistant.
The source database (Debezium)
The connector class names the engine (PostgreSQL, MySQL / MariaDB, SQL Server, Oracle). Its database.hostname is resolved on the proxy (the proxy sees the database network); the server then links it to a database health source of the SAME account whose host (name or address) and port match — two matches are decided by database.dbname. MySQL is linked by host only. For PostgreSQL the replication slot is found by (that database, slot.name) in its Replication block. A database of another account is never considered.
Topics per connector
From /connectors/{name}/topics (KIP-558, Connect 2.5+). An older Connect answers 404 — the topics then show as unknown, said in the coverage, never as "none". A Connect before 2.3 (no ?expand) is read one connector at a time.
AWS MSK Connect
The AWS Kafka Connect API (ListConnectors) reports each connector's state only — RUNNING, CREATING, UPDATING, DELETING or FAILED with its state description (redacted). There are no tasks, no failed-task traces and no topics in that API; the coverage says so.
Findings
Warn-only rules over the latest read; each threshold is edited on the integration and shown with its value and source.
The rules
| Finding | Severity | Threshold (default) |
|---|---|---|
| Connector failed | critical | a connector in state FAILED (its first error line) |
| Connector task failed | warning | a task in state FAILED (the connector may still be RUNNING) |
| Connector paused | warning | PAUSED / STOPPED for 4 h |
| Connector / task unassigned | warning | a connector or task UNASSIGNED for 5 min |
| Debezium behind the source | warning / critical | MilliSecondsBehindSource over 300 s / 3,600 s |
| Debezium snapshot without progress | warning | a running snapshot whose rows scanned did not grow for 30 min |
| Connector stopped, its slot retains WAL | warning (critical when the WAL is lost) | a Debezium connector not running while its PostgreSQL slot is inactive and retains ≥ 64 MB — the finding names both: "Connector inventory-cdc is FAILED while its slot debezium on pg-prod is inactive and retains 8.2 GB of WAL" |
- A read that failed changes no finding; without Jolokia the lag and snapshot rules are neither opened nor resolved.
- An authentication refusal pauses the reads for 15 minutes (doubling to an hour).
Good to know
- Read-only: Topologix never restarts, pauses, resumes or reconfigures a connector.
- Not in this release: Confluent Cloud managed connectors (the Confluent Cloud Connect API) are not read — a self-managed Connect cluster in front of Confluent Cloud is. Confluent Cloud brokers and its Schema Registry are read by the Kafka and Schema Registry integrations.
- Licence: connectors are free.
- Strimzi: with the Kafka integration linked to its Kubernetes integration, a connector shows its KafkaConnector resource (matched by name) and whether it is Ready.
- History: each Debezium connector's lag is stored at every read (kept 7 days by default — Admin → System → Background workers, value + source shown on the page); connector and task state changes are kept with the Kafka events.
More Data & Storage integrations
See it on your own infrastructure
Book a demo and we will walk you through Topologix with your systems in mind: on our cloud, or self-hosted in your own network.