-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Feature/SPM]: Support spanmetrics connector #4345
Comments
I have a workaround based on metricstransform processor. Here an example of otel-collector-config.yaml:
|
I want to use the |
This worked well for me however something is not entirely right. I have a demo application with 5 services talking to each other. All 4 of them has data under Monitor but one of them does not have data. One application out of 4 is very similar to this one that is not working which puzzled me. Maybe something about the name of the span? Any tips on how to debug it? |
Several possible issues and solutions that comes to my mind:
|
Thanks! The problem was due to the application missing http semantic conventions. Otherwise your workaround works like a charm. |
## Which problem is this PR solving? Resolves #4345 ## Short description of the changes - Adds support for spanmetrics connector via config parameters, while maintaining backwards compatibility with spanmetrics processor. - Some quality of life changes added to help contributors with making changes to the SPM feature. ## Testing - Add test cases for connector case, and rely on existing tests to assert backwards compatibility. - Manual testing via docker-compose to ensure both the service-level and operation-level metrics are visible in the Monitor tab. --------- Signed-off-by: albertteoh <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
Requirement
As a jaeger operator, I want to use the newly introduced spanmetrics connector for the following reasons:
Problem
The known breaking issues include:
calls_total
metric tocalls
[1], while also allowing for a namespace prefix [2], so a metric name could resemble:my_namespace_calls
._total
from generated metrics names. open-telemetry/opentelemetry-collector-contrib#18677latency
metric toduration
[3], while also allowing for a namespace prefix [4], so a metric name could resemble:my_namespace_duration_bucket
.latency
histogram metrics toduration
. open-telemetry/opentelemetry-collector-contrib#19371Proposal
Make the metric names configurable.
Perhaps introduce an
spm
parameter namespace where metric names can be configured. e.g.--spm.calls-metric-name
and--spm.latency-metric-name
.This would also require an update to the example provided in
docker-compose/monitor
.Other suggestions welcome.
Open questions
No response
The text was updated successfully, but these errors were encountered: