Created 03-07-2019 06:32 PM
I am using confluent HDFS sink connector and would like to know how to get consumer properties to expose through either JMS or rest api.
I checked the following two properties, however, I don't know how to expose matrix to jmx port
1. connect-standalone.properties
2. consumer.properties
Created 03-11-2019 07:31 PM
JMX is not exposed in a property file. It is toggled from two environment variable. Confluent and Apache Kafka installations share the same variables for this.
Source code here -
https://github.com/apache/kafka/blob/trunk/bin/kafka-run-class.sh#L166-L174
Basically, if you export the JMX_PORT to a valid port number, it will open that port for JMX monitoring of any Kafka-related script that you run.
The recommendation, however, is to use a cluster of machines running Connect Distributed, as it is a long-running process, and you can scale your metrics collection using tools like Prometheus JMX Exporter combined with a Grafana server for dashboarding.
Created 03-12-2019 05:02 PM
This is what we have done. However, I am not able to see any consumer matrix , I am only able to see broker matrix. is there something I am doing wrong.
Created 03-18-2019 07:05 PM
If you see broker metrics, then that is where you exposed the port to. Kafka Connect is meant to be run on separate machines from the brokers, but if you are running on the same ones, then you must expose and monitor two differerent JMX ports.