Pre-requisites for Monitoring Confluent Cloud Kafka

Before attempting to manage and monitor Confluent Cloud Kafka, make sure that the following pre-requisites are fulfilled:

  • Identify the Environment ID: Obtain the unique Environment ID of the Confluent Cloud environment that hosts the Kafka resources to be monitored. This ID is required when configuring the monitoring test in eG Innovations. For more details on how to identify the Environment ID, refer Identify Environment ID on Confluent Cloud section.

  • Create a Service Account: Create a dedicated service account in Confluent Cloud to enable eG Innovations to access the monitoring information required for Kafka monitoring. For more details on how to create a service account, refer Creating Service Account on Confluent Cloud section.

  • Assign Roles to the Service Account: Assign the Metrics Viewer role to the service account to grant it the required permissions to view Kafka metrics. For more details on how to assign roles to the service account, refer Creating Service Account on Confluent Cloud section.

  • Download API Key and Secret for Service Account: Create an API key and secret associated with the service account. These credentials are required to authenticate eG Innovations with Confluent Cloud and should be provided in the test configuration. For more details on how to download API Key and Secret for service account, refer Creating API Key and API Secret section.

Once these pre-requisites are completed, the Environment ID, API key, and API secret parameters can be specified in the test configuration page to enable monitoring of Confluent Cloud Kafka.

Identify Environment ID on Confluent Cloud

  1. Login to the console of Confluent Cloud.

    Figure 1 : Confluent cloud console

  2. Navigate to the Environments section and click the Environment where the target Kafka resources are deployed.

    Figure 2 : Environments section in Confluent cloud console

  3. Access the Details tab and copy your Environment ID. This should be specified in the test configuration page.

    Figure 3 : Newly generated Environment ID

Creating Service Account on Confluent Cloud

  1. Expand the hamburger menu and click the Account and Access option in Confluent cloud console.

    Figure 4 : Account and access option

  2. In the page that appears, navigate to the Service accounts tab and click Create service account button.

    Figure 5 : Creating service account

  3. Specify the name of the service account that is to be created and click Next.

    Figure 6 : Specifying name of service account

  4. Pick the Metrics Viewer role, click the Add button and then Click Next.

    Figure 7 : Selecting Metrics viewer role

  5. View your service and the chosen role and then click the Next button.

    Figure 8 : Viewing service and role assignment

  6. Review your service account and role selection and click the Create service account.

    Figure 9 : Creating service account

  7. The newly created service account is then displayed.

    Figure 10 : Newly created service account

Creating API Key and API Secret

  1. Expand the hamburger menu and click the API keys option in Confluent cloud console.

    Figure 11 : API keys option in Confluent cloud console

  2. Click Add API key in the page that appears.

    Figure 12 : Adding API keys

  3. Specify the name of the API key, select the service account that you had created and click the Create API key.

    Figure 13 : Specifying API Key name and service account selection

  4. The API key and API Secret is then displayed. Save the API key and secret by clicking the Download API key button and click Finish. This API key and secret should be specified in the test configuration page.

    Figure 14 : Newly generated API Key