Code Monkey home page Code Monkey logo

kafka-jolokia-telegraf-collector's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kafka-jolokia-telegraf-collector's Issues

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.

Not Able to run the demo python script using exec plugin

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.