-
Notifications
You must be signed in to change notification settings - Fork 981
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
KafkaProducer Metrics missing TOPIC name tag #2746
Comments
@vijaycse What metrics do you want to differentiate with the topic name? Kafka only adds the topic name to these metrics:
|
@vijaycse I'm closing this since the meters above has the topic tag, if you want more meters to have it, I think that should be changed on Kafka side. Please let us know if I misunderstood something and you want the issue to be reopened. |
Thanks @jonatan-ivanov . I will get back to you. I am still not seeing the topic tag. perhaps its on our side or version. I need to dive deep. thanks for taking a look |
@vijaycse Do you find any solution for adding the topic tag to the producer metrics? Like for these metrics |
It was a long time ago. Sorry, I do not remember exactly.
Did you attempt to try latest kafka version etc?
…On Wed, Aug 7, 2024 at 3:59 AM Ayush Verma ***@***.***> wrote:
@vijaycse <https://github.com/vijaycse> Do you find any solution for
adding the topic tag to the producer metrics?
—
Reply to this email directly, view it on GitHub
<#2746 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDARNBQUTXSEA5A77NOKZLZQHOXBAVCNFSM6AAAAABMD6JD5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSHE3TGNJZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Regards,
Vijay R
|
Issue Description
KakfaConsumerMetrics (MBean implementation) has a way to get the TOPIC name added part of the tags.
micrometer/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/kafka/KafkaConsumerMetrics.java
Line 357 in 6262af1
but I understand from this issue #1095 that we are not going with MBean implementation anymore.
We have a producer that produces into multiple topics but there is no way for us to differentiate the metrics by TOPICs(unlike consumer)
As you can see the topic name is emitted by the MBean from kakfa
https://docs.confluent.io/platform/current/kafka/monitoring.html#per-topic-metrics
MBean: kafka.producer:type=producer-topic-metrics,client-id=([-.w]+),topic=([-.w]+)
It seems to me that MetricReporter(https://github.com/micrometer-metrics/micrometer/pull/1173/files) implementation not getting everything like MBean.
Rationale
I thing it would be better to add TOPIC name (either by MetricReporter implementation or MBean (not ideal though)
here
micrometer/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/kafka/KafkaMetrics.java
Line 238 in 6262af1
The text was updated successfully, but these errors were encountered: