-
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
Metrics converted from span data using spanmetrics connector are inaccurate #20746
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
/label processor/metricstransform |
Can you clarify how exactly it is inaccurate, for example, the recent metrics are not updated, etc. It would be great to have more information. Can you also simplify the collector config and verify whether the issue is still there after removing the metricstransform? Can you also rely on the logging exporter for now when reasoning about the data correctness, it would also narrow the debugging scope. Thanks. |
@kovrus Yes, the recent metrics are not updated. For example, firstly I sent two HTTP requests to endpoint Then I sent 3 more HTTP requests to endpoint I didn't verify after removing the Yes, I've added logging exporter in my otel collector config as below. @kovrus Could you please let me know how to narrow the debugging scope according to the otel collector pod log? Thanks a lot.
|
@kovrus Is there any update for this issue? Thanks a lot. |
It is hard to say something having this information. Can you minimalize the setup to reproduce the same issue? you can drop the metric transform processor, and use logging exporter output to reproduce the issue? Have you taken a look at the collector logs? Also, please note that the spanmetrics connector flushes data periodically, so you won't see data immediately. |
@kovrus I've looked at the collector logs, there are lot of messages as below. Is there anything else I need to check from the otel collector log? What's the period time for the spanmetrics connector to flush data?
|
@kovrus The detailed setup steps are as below:
As you can see above. In my otel collector, I added the following transformation to generate new metrics
|
Am I interpreting the bug report as trying to update prometheus histogram values for the same timestamp in different transaction? |
@jeromeinsf What does "update prometheus histogram values for the same timestamp in different transaction" mean? Thanks. |
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. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
connector/spanmetrics
What happened?
Description
I enabled auto-instrumentation for my microservices in Node.js. And I used
spanmetrics
connector in my otel collector to generate metrics (duration and error) for microservices in my application. I created a Grafana dashboard to show these metrics, sometimes when I send an HTTP request to the microservice, the metrics data shown on the Grafana dashboard are not updated with this new HTTP call.Steps to Reproduce
My otel collector config is as below:
Using this otel collector, I can get the metrics mas_assist_xxx and show them on the Grafana dashboard. But I find that the sometimes the metrics data is inaccurate. For example, I send an HTTP request to my backed service, but on the Grafana dashboard, the bucket heat map (the corresponding PromQL is
sum(round(increase(mas_assist_documentquery_searchdocuments_duration_seconds_bucket{masinstanceid="assistdevtest",masworkspaceid="masdev"}[$__range]))) by (le)
) are not updated with this new HTTP call.Expected Result
The metrics data generated with
spanmetrics
connector are accurate.Actual Result
The metrics data generated with
spanmetrics
connector are inaccurate.Collector version
v0.75.0
Environment information
Environment
OS: OpenShift 4.10
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: