-
Notifications
You must be signed in to change notification settings - Fork 805
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
instrumentation-jmv - builders miss build() method #904
Comments
Thanks for bringing this up. I agree there's currently no way to unregister
Based on this ticket I assume you tend towards making So, what do you think of the alternatives? |
Why do you think creation of |
It seems builders for JVM collectors miss build() method. Its only possible to register to the registry.
While I somehow understand the design that there is a separate "metrics" idea (various collector/multicollector incarnations) and registry which is used to - say "consume" them, lack of intermediate grouping possibility causes various trouble.
Like - registry has "unregister" method. How is one supposed to use it, it I'm unable to get reference to collector that exposes group of metrics?
To be specific - how to first register, and then unregister
JvmBufferPoolMetrics
?It should be built by registering underlying metrics to form composite collector. Like the PrometheusRegistry, but implementing collector interface. Stripped out of unnecessary concurrency support and mutability.
And such thing can then be passed over to http server or becomes part of more complex infrastructure at higher level.
This seems like duplicate of #903, but I actually have particular problem with this registration/unregistration when trying to upgrade http4s-prometheus-metrics (which wraps prometheus-client-java) from 0.16 to 1.1.
The text was updated successfully, but these errors were encountered: