Checking connector statuses

To verify your connector configurations, you can check their statuses from the Confluent Control Center or by submitting a curl command to the REST API from a terminal window.

Procedure

  • To report a connector status in the Confluent Control Center:
    1. In a web browser, open the Confluent Control Center.
      By default, the Confluent Control Center can be reached at:
      http://<server>:9021

      where <server> is the host name or IP address of your Confluent server.

    2. On the sidebar on the left, click Connect.
    3. Select the appropriate Data Gate worker cluster.
    4. Find the connector you want to check in the connector list and select its name.
      A working connector reports the following details:
      • The task status Running
      • Configuration details
      • Metrics and throughput
      • Recent errors (if any)
  • To retrieve a connector status by using the REST API:
    1. Open a terminal window and log on to the Confluent server.
    2. On the command-line, enter the appropriate curl command. Make sure to address the correct port.
      See the following example:
      curl http://localhost:8083/connectors/db2z-source-connector/status
      Expected result:
      {
        "name": "db2z-source-connector",
        "connector": {
          "state": "RUNNING",
          "worker_id": "connect-worker:8083"
        },
        "tasks": [
          {
            "id": 0,
            "state": "RUNNING",
            "worker_id": "connect-worker:8083"
          }
        ]
      }