-
Notifications
You must be signed in to change notification settings - Fork 129
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
Delete prometheus-client-bridge #1136
Comments
I'm not sure that PR is a full replacement. I'm using the PrometheusServlet to serve up prometheus data. That uses the default registry, and the bridge lets me just let the default registry collect OTel metrics. I don't see how that PR will replace that usage, but I might be missing something. |
You should be able to do this via In doing so, I think you should be able to define your own handler which reads from all the collectors associated with the registry. |
But, I'm not using a Prometheus Http server...I'm using the built-in tomcat from spring-boot, with the prometheus servlet serving up the metrics. |
Ah I think if I understand correctly, you would need to use PrometheusMetricReader and register it with both I was going to say that we would have to make the new
Side note - if we go with this approach, we'll need to be careful to document that most users will want |
Oh! 🤔 I'd be happy to try that out, once it's merged and released; if it works, then I'm 👍🏽 on this proposal. |
Component(s)
prometheus-client-bridge
What happened?
The functionality is implemented in
opentelemetry-java
in open-telemetry/opentelemetry-java#6015, which allows you to associate your ownPrometheusRegistry
withPrometheusHttpServer
.Component version
latest
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: