Configuring monitoring of Apache Kafka environment
To configure monitoring of Apache Kafka environment
- Perform one of the following actions:
- In BMC Helix Operations Management, select Configuration > Monitor Policies > Create.
- In TrueSight Operations Management, select Configuration > Infrastructure Policies > Create Policy.
- Click Add Monitoring Configuration.
- From the Monitor Solution list, select Kafka.
The system automatically sets the values in the Version (latest), Monitor Profile, and Monitor type fields. - In the Environment Configurations section, click Add.
- Add the monitoring configuration as described in the following table:
| Field | Description |
|---|---|
| Environment name | Enter a unique name for the environment where you discover Apache Kafka instances. Use alphanumeric characters in the name (A-Z, a-z, 0-9). Do not use any of the following characters: |
| Bootstrap ServiceName / Server(s) (Server1:port,Server2:port) | Enter the bootstrap server names in the format: servername:port. Separate multiple server names by a comma. For example, server1:9092, server2:9092. |
| User-defined Cluster Name - Device | Enter the name that you want to assign to the Apache Kafka cluster. This name appears in the monitor policy as the device name. For example, if you enter ApexKafka-Europe as the cluster name, all events are associated with the ApexKafka-Europe device. |
| Cluster Device Mapping | Expand the Cluster Device Mapping field to define the mapping between a cluster name and a device name for monitoring Apache Kafka:
|
| Broker Device | Expand the Broker Device field to enable the device mapping of the nodes:
When you select one of the device mapping options, all the database instances are discovered under the database host device. |
| Endpoint Details | Select one of the following methods for metric collection:
|
| JMX port to collect metrics | Enter the JMX port number. The JMX port is used to collect the performance metrics. For example, 9999. Important: Make sure that the JMX port number you use is open, available, and the same for all brokers. |
| Remote JMX authentication | Expand the Remote JMX authentication field to configure authentication details to connect to JMX:
|
| Metric Endpoint port | Enter the metric endpoint port number. The default port number is 11001. |
| User Name | Enter the user name to connect to the metric endpoint. |
| Password | Enter the password to connect to the metric endpoint. |
| CA Cert file (pem) | The CA Cert file (pem) field specifies the path to the Certificate Authority (CA) certificate file, in PEM format, used to establish a trusted TLS connection between the Apache Kafka KM and the AWS Managed Streaming for Apache Kafka (MSK) Metric endpoint. The CA certificate is used to validate the identity of the AWS MSK metric endpoint when broker metrics are collected through Metric endpoints. To configure secure access to metric endpoints, perform the following steps:
|
Aiven Endpoint with port | Enter the Aiven endpoint port number. Ensure that Jolokia integration is enabled on Aiven to expose JMX metrics. For more information, refer to Aiven Documentation: https://aiven.io/docs/platform/howto/integrations/access-jmx-metrics-jolokia. |
Aiven User name | Enter the Jolokia endpoint username to connect to Aiven. |
Aiven Password | Enter the Jolokia endpoint password to connect to Aiven. |
CA Cert file (pem) | Download the Kafka CA certificate from Aiven and specify the path For Aiven Kafka, generate the trust store file (client.truststore.jks) and key store file (client.keystore.p12) by using the access key, access certificate, and CA certificate, and then specify the path to the trust store file. For more information, refer to Aiven Documentation: https://aiven.io/docs/products/kafka/howto/keystore-truststore. |
| SASL authentication | Expand the SASL authentication field to configure SASL authentication:
|
| SSL Certificate Details | Expand the SSL Certificate Details field to configure SSL certificate details:
|
| Filtering Options | Expand the Filtering Options field to configure Kafka topics you want to include or exclude from the monitoring:
|
| KM Administration | Expand the KM Administration field to configure Java details:
|
| Java home | Enter the path of the Java home directory. For example, if your Java executable exists in the /usr/java/jdk1.8.0_45/jre/bin/java path, enter /usr/java/jdk1.8.0_45/jre as the value in this field. |
- Click Save.