-
Notifications
You must be signed in to change notification settings - Fork 179
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
Move existing Kafka metrics to a JMX specific namespace #269
Comments
Related issue in the specification. |
I like the approach @jack-berg took to a similar problem in open-telemetry/opentelemetry-java-instrumentation#6138:
|
I fully agree, .NET runtime metrics are a great example of this. The conception that telemetry data needs to be covered by OTel semantic conventions in order to be useful leads to unwanted side effects:
My take is that telemetry conventions referring to a specific component (e. g. Kafka broker, or .NET runtime) can be part of OTel semantic conventions, but can as well live apart of them. In any case, they should be maintained by people working on that specific component, and not by the wider community. |
I agree as well. For me, what is a bit unclear is: If I specify such conventions outside OTel, should they follow the OTel guidelines? For ex, metrics names, instrument types and etc? To me it makes sense that if such library/framework etc uses OTel components to record such data (tracer, meter) they must follow the OTel guidelines. |
Discussed in the semantic conventions SIG meeting on September 18th. There was an agreement to remove experimental Kafka metrics from the semantic conventions. If a definition or reference of those metric is needed, it should be provided by the documentation of the package that synthesizes those metrics. It seems this documentation is already available in the |
Problem
The Kafka metrics in the messaging semantic conventions are based on metrics as they are reported by the JMX reporter. Although the JMX reporter is the default reporter, different reporters can be configured.
In their current form, the definition of those metrics causes confusion, as they suggest being an authoritative definition of metrics as they are reported by Kafka. However, they look different from the metrics in the official Kafka documentation, and they are different from the OTLP metrics defined in KIP-714.
Based on feedback from @AndrewJSchofield, people involved in the Kafka project currently don't have an interest in defining and maintaining a definition of Kafka metrics as part of the OTel semantic conventions.
Desired solution
The semantic conventions should make it clear that the existing metrics are JMX specific, ideally in the metric name. This allows support for conventions for Kafka metrics that are sent via a different reporter.
Even more importantly, this avoids confusion, as it makes clear that the OTel semantic conventions are not the place that provides an authoritative definition of Kafka metrics.
The text was updated successfully, but these errors were encountered: