paksu / kafka-jolokia-telegraf-collector Goto Github PK
View Code? Open in Web Editor NEWSimple Kafka broker JMX metric collection with Telegraf
License: MIT License
Simple Kafka broker JMX metric collection with Telegraf
License: MIT License
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.
Hi,
While trying to run the python script using the examples provided, I keep getting stuck at 1 point.
I have configured everything and influx jolokia are propelry setup. But eventually when I run using telegraf, I get this log(with error included)
2016/11/12 22:10:27 I! Using config file: /etc/telegraf/telegraf.conf
2016/11/12 22:10:27 I! Starting Telegraf (version 1.1.0)
2016/11/12 22:10:27 I! Loaded outputs: influxdb
2016/11/12 22:10:27 I! Loaded inputs: inputs.exec inputs.disk inputs.diskio inputs.processes inputs.swap inputs.system inputs.cpu inputs.kernel inputs.mem
2016/11/12 22:10:27 I! Tags enabled: host=feb261ef0aa1
2016/11/12 22:10:27 I! Agent Config: Interval:10s, Quiet:false, Hostname:"feb261ef0aa1", Flush Interval:10s
2016/11/12 22:10:30 E! ERROR in input [inputs.exec]: Errors encountered: [exec: exec: "python": executable file not found in $PATH for command 'python ~/gitprojects/kafka-jolokia-telegraf-collector/kafka_jolokia_reporter.py']
My config file has the same snippet in the exec as what you had mentioned. I have also tried calling the script from inside a shell script but still it doesn't run... Anything glarinlgy worng here?
Does the work in this code address a deficiency in https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.