-
Notifications
You must be signed in to change notification settings - Fork 7
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
Duplicate metric names when scraping metrics on Kafka clients #43
Comments
To reproduce this issue, you need to start multiple instances of the same type of Kafka client (producer, consumer or admin) in a JVM. You can either:
|
@mimaison I'm missing something. I'm running the Streams example mentioned above with the I've also tried using multiple For instance: Does that count as having multiple instances on the same JVM? This is the producer command I'm running for example:
and this is the consumer:
This is a sample of the consumer output so the wordcount app is working:
Any advice welcome. Thanks |
I've tried the other approach and created a KafkaProducer that runs two producers at the same time. I keep getting this error in my producer log when trying to run it the
Here is my producer: I came across this when looking into it: |
To reproduce with Streams, just run: bin/kafka-run-class.sh org.apache.kafka.streams.examples.wordcount.WordCountDemo ./config/streams.properties where Then open Regarding the producer issue you hit, that's a bug upstream. So either try with an earlier version or newer version. You can also reproduce this issue with consumers or Connect. |
@mimaison Thank you |
When using the reporter with Kafka clients, you get the following exception when querying the metrics endpoint:
The text was updated successfully, but these errors were encountered: