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
Support kafka 0.10.2.1 or newer versions #24
Comments
@panda87 Sure! We should absolutely support that. Would you mind posting the exact CLI command that you'd execute to describe a Kafka topic (and it's lag etc.) on version 0.10.2.1? In older versions it's something like:
Also, the specific code that queries Kafka is https://github.com/kawamuray/prometheus-kafka-consumer-group-exporter/blob/master/kafka/collector.go#L147. |
Thanks @JensRantil This is the command: This is the result:
|
@panda87 Thanks! Do you get an error if you'd specify |
No, it's just already the default, and it may be deprecated in the next versions. |
@panda87 Hm, what's interesting here is that that command is the exact same one that the exporter is supposed to extract. Are you sure that you've properly set https://github.com/kawamuray/prometheus-kafka-consumer-group-exporter/blob/master/cmd/kafka_consumer_group_exporter.go#L28 when starting the exporter? |
Yes, I dockerized it, so I just changed in |
Im wondering maybe the results template is different? |
@panda87 That's a very good theory. Could you verify that the output from the command separates its columns by spaces and not tabs (which sometimes gets converted to spaces when copy/pasting)? |
@panda87 Thanks for all the help so far! I started on a pull request in #29. I'm on a rather tight schedule, but it looks like they've modified the order of the fields just like you said. I've been hoping we wouldn't have to require the user to give flags on which version of Kafka which is being running. Do you know if there's any way to get a Kafka version from the |
No, this script doesn't have |
Hi
Im using kafka 0.10.2.1, and when I tried to run the binary with this cluster I got
kafka_broker_consumer_group_describe_errors
, and when I used with 0.10.0.1 as mentioned in the README file, I got the some good metrics.I still don't know if there is any difference, but this will be nice to get support also for newer versions of kafka
Thanks
D.
The text was updated successfully, but these errors were encountered: