Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push the tcollector metrics to kafka using kafka_dumper.py script #1

Open
MohamedHz opened this issue Jul 26, 2017 · 0 comments

Comments

@MohamedHz
Copy link

MohamedHz commented Jul 26, 2017

Hi Robin,

I am planning to monitor the infrastructure using kafka + opentsdb using the agent tcollector.

So, I just import the python script(kafka_dumper.py) into the tcollector path (/usr/local/tcollector/collectors/0) but it was not working.

Tcollector log

2017-07-26 14:38:47,210 tcollector[11908] INFO: kafka_dumper.py (interval=0) needs to be spawned
2017-07-26 14:38:47,214 tcollector[11908] ERROR: Failed to spawn collector /usr/local/tcollector/collectors/300/kafka_dumper.py: [Errno 8] Exec format error

Then I just tried to run the script by using in command line and I am not sure which argument should pass in command line, Could you help me please ?

[root@server 300]# python kafka_dumper.py --argument ?--------

Error

[root@server 300]# python kafka_dumper.py /brokers/ids/0
^CTraceback (most recent call last):
File "kafka_dumper.py", line 108, in
process_stdin(sys.argv[1])
File "kafka_dumper.py", line 94, in process_stdin
for line in sys.stdin:

Configuration

I have only one brokers in kafka node and kafka_dumper.py configuration file and broker id is 0. Please correct if my configurations are wrong.

[root@server 300]# cat kafka_dumper.py | grep zk_hosts
zk_hosts = "192.168.231.7:2181"
zk_hosts, znode_path = kafka_znode.split("/", 1)
zk_hosts = kafka_znode
hosts=zk_hosts,

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant