-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring-boot-starter-actuator needs a newer version of micrometer-core #28929
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
Comments
Spring Boot 2.6 should use Micrometer 1.8 by default. Can you please provide a minimal example that shows 1.7.3 being used? |
Spring Boot 2.6.1 uses Micrometer 1.8.0 by default - https://github.com/antti-markus-cko/issuedemo
|
that's weird, when I do
|
@SingingBush That doesn't mean anything if the version was forced by some dependency management in your project. As Andy requested, please share a small sample we can run ourselves that reproduces this. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
I had this same issue and as @snicoll said it was due to a version being forced by dependency management. In my case it was "azure-spring-boot-bom:3.11.0" forcing version 1.7.3 of micrometer-core. As OP said, either directly importing micrometer-core will fix this, or else you can exclude it from the direct dependencies (unfortunately I couldn't exclude it at maven dependency management level as Maven doesn't like that, at least at my version of it) |
@Killianoc than you for bringing this to my attention. I've reported the issue to Azure. |
It's been a while and with a lack of a repro that showcases the problem, I am going to close this now. |
@snicoll @SingingBush What is the solution I have the same problem.
|
@sandy11apr It's likely that dependency management in your project is overriding the version of |
Due to changes in micrometer-core, spring-boot-starter-actuator was updated in issue #27688 to handle the fact that micrometer have changed the package that DiskSpaceMetrics is in (it's now in io.micrometer.core.instrument.binder.system.DiskSpaceMetrics).
The problem is that micrometer-core did that change in the 1.8.* versions but spring-boot-starter-actuator (2.6.1) is pulling in the older 1.7.3 version of micrometer-core which has that class in the old package.
This results in a java.lang.NoClassDefFoundError when initialising the SimpleMetricsExportAutoConfiguration bean.
I was able to work around this problem locally by adding an explicit dependency to micrometer-core 1.8.1 in my pom:
The text was updated successfully, but these errors were encountered: