question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gap in Kafka metrics instrumentation

See original GitHub issue

Description

~The instrumentation module com.newrelic.instrumentation.kafka-clients-metrics-2.0.0 instruments KafkaConsumer#poll(Duration). This method is overloaded (KafkaConsumer#poll(long)) and both call a private method.~

~This means that if a customer is to call the overloaded method, no metrics will be recorded. So we should instrument the private method instead.~

~Also, in newer versions of Kafka (3?) the private method has changed its signature, so we will probably have to create a new instrumentation module.~

While investigating the GTSE it was believed that the instrumentation module kafka-clients-metrics-2.0.0 would apply to Kafka 3, as it is indicated in the build.gradle file. But actually this module is an increment over the kafka-clients-metrics-0.10.0.0 and only instruments the new methods added in Kafka 2.

We confirmed that the customer from the GTSE is using Kafka 3 and so a new instrumentation module is needed.

Reference

https://newrelic.atlassian.net/browse/GTSE-13566

Aha! Link: https://newrelic.aha.io/features/JAVA-385

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
averkhovtsev-xmcommented, Feb 22, 2022

The title of the ticket is a bit misleading. It is not a gap, none of the producer/consumer metrics are being sent to Newrelic. the kafka-clients-metrics-0.10.0.0 module is not applied to 3+ version of kafka clients, the kafka-clients-metrics-2.0.0 module instruments only 1 method in KafkaConsumer which is not metrics related. The reason I’m bringing this up is to increase the priority (and hopefully ETA) of this ticket.

0reactions
meiaocommented, Jun 23, 2022

This was delivered in the 7.8.0 agent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitor Kafka Consumer Group Latency with Kafka Lag Exporter
Introducing Kafka Lag Exporter, an OSS tool created by Lightbend's Sean Glover to make it easy to view consumer group metrics in Kafka...
Read more >
Monitoring Apache Kafka applications - IBM Developer
This metric is the gap between the consumer offset and the lead offset of the log. Kafka removes the oldest messages when the...
Read more >
Complete Guide to tracing Kafka clients with OpenTelemetry ...
In this tutorial, we will learn how to use OpenTelemtry for Kafka-based applications. OpenTelemetry can help instrument Kafka clients and ...
Read more >
The Apache Kafka Monitoring Blog Post to End Most Posts
The Confluent Metrics Reporter collects important data about the cluster and the Confluent Monitoring Interceptors collect important data about ...
Read more >
Kafka monitoring integration | New Relic Documentation
We instrument all the key elements of your cluster, including brokers (both ZooKeeper and Bootstrap), producers, consumers, and topics. To install the Kafka...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found