-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Metric Mismatch between Readme and Actual Behaviour #18743
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Looking at code https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/servicegraphprocessor/processor.go#L217-L255 @mapno @jpkrohling would it make sense instead of prefixing all attributes to have an attribute, e.g. |
I would attempt to keep the connector compatible with the processor counterpart so that people can move from the processor to the connector, and back if they need (like, for performance reasons). |
The processor measures both client and server spans. The prefix now is made to differentiate labels when both spans have the same label, so one doesn't overwrite the other. I agree that it should documented if it's not, but it's not related to this issue.
Connector and processor are basically the same codebase: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/connector/servicegraphconnector/factory.go#L17-L19 The idea of having IMO, we should split |
Alternatively, we can keep |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I believe this has been addressed, right @mapno? |
Component(s)
processor/servicegraph
What happened?
Description
In the metrics description of the README, there should be two histograms,
traces_service_graph_request_server_seconds
andtraces_service_graph_request_client_seconds
. Instead there is only one calledtraces_service_graph_request_duration_seconds
:opentelemetry-collector-contrib/processor/servicegraphprocessor/processor.go
Lines 72 to 75 in a3750c9
It looks like the documented metrics are a holdover from the tempo servicegraph generator which does create those metrics. Tempo requires the ones documented: https://github.com/grafana/tempo/blob/8901bf5e09c316e78343ab536d6c3c704bf3de64/modules/generator/processor/servicegraphs/servicegraphs.go#L48-L49
I'm able to work-around this by, perhaps incorrectly, renaming the duration metric to the server metric which tempo expects.
I'm not sure what the plans are but I would expect to be able to use this with the tempo grafana datasource as is, since it's called out as supporting this by default. Will this be corrected into the future? At the very least it would be helpful to call out the differences or what one needs to do to have this work correctly in tempo.
Thanks!
Steps to Reproduce
Run as documented.
Expected Result
To have both metrics:
traces_service_graph_request_server_seconds
traces_service_graph_request_client_seconds
Actual Result
It produces
traces_service_graph_request_duration_seconds
Collector version
v0.71.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: