newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
202 stars 143 forks source link

KafkaMetrics event not getting recorded #1785

Closed aditya-32 closed 7 months ago

aditya-32 commented 7 months ago

Description

We are using newrelic agent 8.8.1 and want to get kafkaMetrics event data for a java application using kafka-client v3.7.0 we did the changes mentioned in doc and added _kafka.metrics.asevents.enabled: true to the newrelic.yml config file . The config file is then mounted to a pod and the pod is able to start newrelic agent with those config which we verified in mount file as well as in the environment tab

Screenshot 2024-03-06 at 5 19 17 PM

But still we are not getting the kafkaMetrics event in event explorer

Expected Behavior

KafkaMetrics event should be recorded in event explorer

Troubleshooting or NR Diag results

newrelic log file newrelic_log.txt

Steps to Reproduce

Your Environment

java : v21 newrelic-agent: 8.8.1 kafa-client : v3.7.0

Additional context

Initially we did a POC where we added the same config to newrelic.yml and tested it , it was working fine and KafaMetrics was getting populated but recent it's not workin as expected.

Screenshot 2024-03-06 at 5 22 58 PM
workato-integration[bot] commented 7 months ago

https://new-relic.atlassian.net/browse/NR-239172

meiao commented 7 months ago

When you did your PoC, you were probably using an older version of Kafka clients. Kafka clients 3.7.0 was released recently and the agent does not support it yet. Please, follow #1766 for progress on Kafka 3.7.0 support.