kafka-jolokia-telegraf-collector
kafka-jolokia-telegraf-collector copied to clipboard
Python script returns nothing
Hello,
I have Kafka running inside a docker container. I have linked a local folder using -v
option, containing the jolokia JAR file.
I have also set the environment variable KAFKA_OPTS
to give the JAR location as well as the host & port to bind/listen to.
However, with all this set up, the python script returns nothing. When I run it directly with the IP address of the container and port 8778, I get no output, and telegraf logs say :
2018-05-14T12:49:25Z E! Error in plugin [inputs.exec]: exec: Command timed out. for command 'python /home/monimail/kafka_jolokia_reporter.py --jolokia-host 172.17.0.2 --jolokia-port 8778'
Any ideas ? Thanks.