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
Problem with prometheus metrics on 2.5.0 and mongodb autostarter include #26665
Comments
Happens to me as well. common tags are injected by:
|
I have the same problem and I use the r2dbc mysql.
On a temporary basis, I've worked it out like this. But I hope there is a more principled solution.
|
@snicoll checked with |
Dear Spring Boot team,
I wanted to test the new feature from Spring Boot 2.5.0 MongdDB metrics.
Unfortunately after upgrade from 2.4.X to 2.5.0 seems "broken". I assumed that could be something with our Spring cloud dependencies but I was able recreate this with minimal Spring Intializer project.
The dependencies which I've added:
In the next step the only thing which I'm changing is upgrade to Spring Boot 2.5.0. Then the metrics looks like:
So all the jvm, memory, etc. stuff disappear. There is not custom application tag added to metrics, etc. I've seen you mentioned about some response changes (https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Release-Notes#openmetrics-for-prometheus) but I don't think it is related.
How to recreate:
The mongo will be needed - I've added some example docker-compose in root project dir to quickly setup it.
demo.zip
The text was updated successfully, but these errors were encountered: