-
Notifications
You must be signed in to change notification settings - Fork 992
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
Support Gauge registration at micromter-observation api #5477
Comments
This is an interesting question that we considered since the beginning even before the Observation API was just a proof of concept. Let me put a brain-dump here about the problem space, please bear with me. :) The initial goal of the Observation API was not only unifying Metrics and Tracing APIs (though I think it can do that pretty well except the Also, I feel like Micrometer already has a generic API for gauge-like values, it's the That being said, you are not the first one who asked this question, and I came up with a simple proof of concept for such a component: Please let us know if you have a use-case for gauge-like values other than recording metrics, in the meantime, I think these are your options:
What do you think? |
I was thinking something like "give me the state of the application". But I guess it is the aim of the Gauge itself, and it does not occur to me any other "real world" example that would fit to it a part from metrics. Thank you for the time spent! |
I feel this might be also connected: #5112 You can use it for things like |
Please describe the feature request.
Create a generic api at micrometer-observation for registering Gauges
Rationale
We are developing a set of libraries on top of Spring Boot which use micrometer to create metrics and traces. As Spring Boot did, we load metrics and tracing auto-configurations or not depending if metrics and traces are at classpath. Now we are refactoring our libraries to use micrometer-observation generic api to unify both and get rid of these conditionals.
Having said that, we use at several points Gauge metrics, so the suggestion would be to have a generic api at micrometer-observation which would register a gauge. (Although I am not sure if it would have sense for tracing.
The text was updated successfully, but these errors were encountered: