Complete the cluster registration¶
The final step in setting up Unified Stream Manager (USM) is to register your Confluent Platform cluster with Confluent Cloud. This process links the deployed USM Agent to a specific cluster ID from your self-managed environment.
Before you begin¶
- You must have the cluster ID for your Confluent Platform cluster. To get the ID, log in to your cluster by using
the Confluent Platform CLI and run the command
confluent cluster list. - Ensure that your Confluent Cloud environment has the Advanced Governance package, which is required for USM. To upgrade your environment, see the upgrade instructions.
Log in to your Confluent Platform cluster by using the Confluent Platform CLI.
Get your cluster ID by listing the available clusters:
confluent cluster list
Return to the registration wizard in the Confluent Cloud Console and enter the Confluent Platform cluster ID. The Metadata region is automatically selected based on your private network configuration. You cannot change this setting.
Enter a descriptive Cluster name to be used in the Confluent Cloud Console.
Click Register cluster.
After the registration succeeds, click Close Wizard. You are directed to the Confluent Platform Clusters page, which displays your newly registered cluster.
(Optional) If you haven’t upgraded your environment to include the Advanced Governance package, run the following command.
confluent environment update <environment-ID> --governance-package advanced
For example, to upgrade an environment with the ID env-abc123:
confluent environment update env-abc123 --governance-package advanced
The command will return a confirmation similar to this:
+---------------------------+------------+
| Current | false |
| ID | env-abc123 |
| Name | env-name |
| Stream Governance Package | ADVANCED |
+---------------------------+------------+
To register a Confluent Platform cluster with the Confluent CLI, use the following command. Replace the placeholders with your own values:
confluent unified-stream-manager kafka register <cluster-ID> --name <cluster-name> --cloud <cloud-type> --region <region-name>
For example, to register a Kafka cluster with ID 4k0R9d1GTS5tI9f4Y2xZ0Q in AWS region us-east-1:
confluent unified-stream-manager kafka register 4k0R9d1GTS5tI9f4Y2xZ0Q --name my-kafka-cluster --cloud aws --region us-east-1
The command returns a confirmation similar to the following:
+--------------------------------+--------------------------+
| ID | usmkc-global-abcdef12345 |
| Name | my-kafka-cluster |
| Confluent Platform Kafka | 4k0R9d1GTS5tI9f4Y2xZ0Q |
| Cluster ID | |
| Cloud | AWS |
| Region | us-east-1 |
| Environment | env-abc123 |
+--------------------------------+--------------------------+
For a complete reference of related commands, see the confluent unified-stream-manager documentation.
Register additional clusters¶
To register more clusters, go to the Environments page in the Confluent Cloud Console and click Register Platform cluster. You can choose to reuse an existing USM Agent or create a new agent.
Deregister a Kafka cluster¶
You can deregister a Kafka cluster from USM using the Confluent CLI. Deregistering the Kafka cluster using the Confluent Cloud Console is not supported.
Log in to the Confluent CLI.
confluent loginGet the Environment ID using the following steps:
- In the Confluent Cloud Console, navigate to the Environments page and select your environment.
- Click the Details tab and copy the ID from the About section.
Run the list command to find the specific
USM_KAFKA_CLUSTER_IDfor the cluster you want to deregister.confluent unified-stream-manager kafka list --environment <YOUR_ENVIRONMENT_ID>
From the output, identify the Kafka cluster you want to remove and copy its ID. Note that a
USM_KAFKA_CLUSTER_IDalways starts with the prefixusmkc-.Use the
confluent unified-stream-manager kafka deregistercommand with theusmkc-ID you copied.confluent unified-stream-manager kafka deregister <USM_KAFKA_CLUSTER_ID> --environment <YOUR_ENVIRONMENT_ID>
The following example deregisters a Kafka cluster with the ID
usmkc-abc123:confluent unified-stream-manager kafka deregister usmkc-abc123 --environment env-12345
The CLI prompts you for confirmation. Type
yand press Enter to proceed.Are you sure you want to deregister USM Kafka cluster "usmkc-abc123"? (y/n): y Deregistered USM Kafka cluster "usmkc-abc123".
Upon successful deregistration, the corresponding Kafka cluster card is removed from the Confluent Cloud Console.
For a complete reference of related commands, see the confluent unified stream manager CLI documentation.