Skip to content
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

Remove workaround for ASP.NET Core Promethesus exporter issue when resolved #215

Open
DamianEdwards opened this issue Apr 19, 2024 · 6 comments

Comments

@DamianEdwards
Copy link
Member

The Metrics sample is working around open-telemetry/opentelemetry-dotnet-contrib#1617 right now. These workarounds should be removed when this issue is resovled.

@DamianEdwards DamianEdwards added this to the GA milestone Apr 19, 2024
@joperezr joperezr modified the milestones: GA, 8.1 May 6, 2024
@joperezr
Copy link
Member

joperezr commented May 6, 2024

@samsp-msft can you follow up in that external issue as this is broken for GA?

@samsp-msft
Copy link
Member

The issue with prometheus is resolved and metrics are working with OpenTelemetry.Exporter.Prometheus.AspNetCore 1.9.0-beta.2.

However, in trying that out I realized what a mess getting prometheus to work with anything but the simplest projects is. I was trying to get it to work with testshop, and ran into issues with:

  • https redirection and getting prometheus to be happy with the dev cert - in the end I had to remove the https redirection
  • Talking between containers - and getting the ports right - the sample project uses a direct url
  • Configuring prometheus to scrape from each applicable container

I think to make prometheus a real story we would need to have a better solution for how it can resolve the services that it needs to pull the data from. I don't know if we can use one of the existing scrape discovery mechanisms, or if we need to add a prometheus scraping provider to apphost that can then deliver the dependency data via config modifications, but I would suggest the prometheus experience is less than ideal.

It reminds me why the dashboard is such a revolutionary experience.

@mitchdenny mitchdenny modified the milestones: 8.1, Backlog Jul 22, 2024
@mitchdenny
Copy link
Member

Moving to backlog for now. Once we are at 8.2 (very shortly) we'll make the case of what we want to bring in.

@LeftTwixWand
Copy link

Hey @DamianEdwards, I think we can remove the workaround at this moment, right?

@DamianEdwards
Copy link
Member Author

Possibly! Would you like to send a PR?

@LeftTwixWand
Copy link

Hey @DamianEdwards
Here is PR: #576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants