Ability to export Prometheus Metrics on a function project #4283
Labels
enhancement
New feature or request
Stale
Issues and pull requests which have been flagged for closing due to inactivity
Feature Request
Is your feature request related to a problem?
My problem is that I'd like to be able to have prometheus scrape metrics from an HTTP endpoint on my functions project. The current middleware won't work for this since that's very server orientated. I imagine I will need to add a HTTP function endpoint to my functions project and write the metrics in. However, because so many of the classes are internal, this isn't possible.
Describe the solution you'd like:
I think this could be solve by either making the classes public (which I appreciate you might not want to do!) or by making an extension method of some form which operates on the HttpRequestData. Something a bit like this though can probably use dependency injection much better than passing all services.
Describe alternatives you've considered.
I could currently use reflection to hack around this? Not sure if anything else I could do.
Additional Context
Happy to have a go at implementing this myself if the general functionality request is okay.
The text was updated successfully, but these errors were encountered: