-
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
Otel-collector-contrib with prometheus exporter missing exemplars (TraceId and SpanId) #30197
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @dotnetstep, just want to make sure I understand your problem, and we're not missing something simple here. Is the problem that your running prometheus instance is not receiving any exemplars? Or is the problem here that your received exemplars don't have the If you're receiving exemplars, can you confirm that you've checked for the proper naming of the I see that since you're sending monotonic sums they should be converted to exemplars. The code path for this case hits the conversion which adds the
|
Now if scrap 7070 endpoint, it call 8889 with extra header and Prometheus able to get exemplar. I wonder why it is not working directly. @crobert-1 |
I'm going to defer to others who have more information here for now |
I am able to reproduce the same issue with the given steps by @dotnetstep , Any plans to resolve this issue anytime soon or any workaround ? |
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 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. |
@dotnetstep did you ever find a solution for this problem? I am dealing with the same issue now. |
@dotnetstep @sahma19 And I found there is no any test case about that. |
My bad.... When I use curl -H 'Accept: application/openmetrics-text' instead, and I work fine..... |
Component(s)
exporter/prometheus
What happened?
Description
I am running dotnet application and it is using latest dotnet 8 and OpenTelemetry sdk. Application is sending Metrics to otlp port 4317 and otel-collecotor-contrib docker conitainer configured to receive, process and export in prometheus format. When application sending metrics, it include exemplars and it successfully receive by otel-collector-contrib receiver and process. When it export to debugexporter it has traceid, spanid but prometheus exporter does not contain those information.
Steps to Reproduce
Expected Result
Actual Result
Collector version
docker latest version
Environment information
Environment
OS: Windows and WSL2 (Docker install inside WSL 2 ubuntu distro)
Attached zip file.
otelexportissue.zip
OpenTelemetry Collector configuration
Log output
Additional context
Look at the logs of otel-collector-contrib docker container, It successfully log metrics with trace id and span id. This means that it reach to the debug exporter. Also prometheus exporter endpoint http://localhost:8889 (as per configuration above) also display metrics but it miss the exemplars.
The text was updated successfully, but these errors were encountered: