This section guides you through setting up, configuring, and managing the Apache Kafka integration.

Prerequisites

  • OpsRamp Classic Gateway (Linux) 15.0.0 and above.
  • OpsRamp Nextgen Gateway 15.0.0 and above.
  • Upgrade to the latest Gateway version to ensure comprehensive coverage of recent bug fixes, feature enhancements, and so on.
  • OpsRamp integrated the Aapche Kafka application by using CLI and JMX calls. The following are the needed priviliges.
    • Ensure that the provided Publisher or Subscriber IP address or host name, along with the credentials, are valid and accessible for successful integration (verify from the OpsRamp Gateway).
      • To check network connectivity from the gateway, use the following command:
        ping <IP Address/Host Name>
      • To check the SSH port accessibility, use the following command:
        telnet <IP Address/Host Name> <Port>
    • JMX -
      • Apache Kafka Brokers must be started with JMX remote enabled (usually enabled by default).
      • The JMX port (default port - 1099) must be open and accessible from the monitoring host.
      • JMX username and password must be configured and available for use, and the user must have permission (at least readonly or monitor access) to connect to the JMX server and read MBean attributes.
      • All Borkers should use same JMX port and same JMX credentials
      • All the brokers should be reachable from OpsRamp gateway, using ipAddress or hostName that configured Kafka Cluster.

Configure and Install the Apache Kafka Integration

  1. From All Clients, select a client.
  2. Go to Setup > Account.
  3. Select the Integrations and Apps tab.
  4. The INSTALLED INTEGRATIONS page, where all the installed applications are displayed.
    Note: If there are no installed applications, it will navigate to the Available Integrations and Apps page.
  5. Click + ADD on the INSTALLED INTEGRATIONS page. The AVAILABLE INTEGRATIONS AND APPS page displays all the available applications along with the newly created application with the version.
    Note: You can even search for the application using the search option available. Also you can use the All Categories option to search.
  6. Click ADD in the Apache Kafka application.
  7. In the Configurations page, click + ADD. The Add Configuration page appears.
  8. Enter the following BASIC INFORMATION:
Field NameDescriptionField Type
NameA user-defined display name for the integration instanceString
Kafka BootStrap IPAddressEnter the Apache Kafka BootStrap IP address. You must be able to connect to this node using SSH and able to execute CLI commands to get Kafka Resource information.String
SSH PortEnter the SSH Port, that must be open and accessible from the gateway. Typically, the default is 22.
Note: By default SSH Port is 22
String
SSH CredentialasSelect the SSH credentials to authenticate with the Apache Kafka system. User should have permission to execute CLI command to get the Kafka Resource information.

Select existing or else, click +ADD to create credentials. The ADD CREDENTIAL window is displayed. Enter the following information:
  • Name: Enter the credential name.
  • Description: Enter the brief description of the credential.
  • User Name: Enter the Username.
  • Password: Enter the password.
  • Confirm Password: Confirm your password.
  • Port: Select the port number from the dropdown.
  • Connection Timeout (ms): Specify the connection timeout in milliseconds.
Dropdown
JMX PortEnter the JMX Port, that must be open and accessible from the monitoring host. Typically, the default is 1099.String
JMX CredentialsSelect the JMX credentials to authenticate with the Apache Kafka brokers. JMX username and password must be configured and available for use, and the user must have permission (at least readonly or monitor access) to connect to the JMX server and read MBean attributes.

Select existing or else, click +ADD to create credentials. The ADD CREDENTIAL window is displayed. Enter the following information:
  • Name: Enter the credential name.
  • Description: Enter the brief description of the credential.
  • User Name: Enter the Username.
  • Password: Enter the password.
  • Confirm Password: Confirm your password.
  • Port: Select the port number from the dropdown.
  • Connection Timeout (ms): Specify the connection timeout in milliseconds.
Dropdown
Kafka PortEnter the Kafka Port, that must be open and accessible from the monitoring host. Typically, the default is 9092.String
Kafka PathEnter the Kafka Path where we configured Kafka and the scripts available to get the Kafka Resource information.

Ex: /opt/kafka
String
App Failure NotificationsWhen selected, you will be notified in case of an application failure such as Connectivity Exception, Authentication Exception.Checkbox
Connection TimeoutAdds the feasibility to configure SSH/JMX connection timeouts in seconds (ex: 60, 50).Integer
Read TimeoutAdds the feasibility to configure SSH/JMX Read timeouts in seconds (ex: 60, 50).Integer
Connection Idle TimeoutAdds the feasibility to configure JMX connection timeouts in seconds (ex: 60, 50).Integer
  1. Select the below mentioned Custom Attribute:
Field NameField TypeDescription
Custom AttributeDropdownSelect the custom attribute from the dropdown.
ValueDropdownSelect the value from the dropdown.

Note: The custom attribute that you add here will be assigned to all the resources that are created by the integration. You can add a maximum of five custom attributes (key and value pair).

  1. In the RESOURCE TYPE section, select:
    • ALL: All the existing and future resources will be discovered.
    • SELECT: You can select one or multiple resources to be discovered.
  2. In the DISCOVERY SCHEDULE section, select Recurrence Pattern to add one of the following patterns:
    • Minutes
    • Hourly
    • Daily
    • Weekly
    • Monthly
  3. Click ADD.


Now the configuration is saved and displayed on the configurations page after you save it.
Note: From the same page, you may Edit and Remove the created configuration.

  1. Click Next.
  2. Below are the optional steps you can perform on the Installation page.
  • Under the ADVANCED SETTINGS, Select the Bypass Resource Reconciliation option, if you wish to bypass resource reconciliation when encountering the same resources discovered by multiple applications.

    Note: If two different applications provide identical discovery attributes, two separate resources will be generated with those respective attributes from the individual discoveries.

Cisco FirePower
  • Click +ADD to create a new collector by providing a name or use the pre-populated name.
  1. Select an existing registered profile.
Aruba Airwave Integrations
  1. Click FINISH.

The application is now installed and displayed on the INSTALLED INTEGRATION page. Use the search field to find the installed application.

Modify the Configuration

View the Apache Kafka Details

  1. Navigate to Infrastructure > Search > MIDDLEWARE > Apache Kafka.
  2. Select the application on the Apache Kafka page.
  3. The RESOURCE page appears from the right.
  4. Click the ellipsis (…) on the top right and select View Details.


View resource metrics

To confirm Apache Kafka monitoring, review the following:

  • Metric graphs: A graph is plotted for each metric that is enabled in the configuration.
  • Alerts: Alerts are generated for metrics that are configured as defined for integration.