Skip to content
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

Spring Boot 2.5.0 doesn't expose JVM metrics under Micrometer Prometheus endpoint #26719

Closed
ceccone opened this issue May 31, 2021 · 2 comments
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@ceccone
Copy link
Contributor

ceccone commented May 31, 2021

I've just generated a demo project with Spring Initializr, and I couldn't find the JVM metrics being exposed in /actuator/prometheus endpoint.

Project/Language: Maven / Java 11
Spring Boot: 2.5.0 (jar packaging)
Dependencies:

  • Spring Web
  • Spring Boot Actuator
  • Spring Data JPA
  • H2 Database
  • Prometheus

application.properties: management.endpoints.web.exposure.include=*
Project: demo.zip

I was able to expose the JVM metrics by either:

  • Removing spring-boot-starter-data-jpa dependency

OR

  • Downgrading Spring Boot to 2.4.6
@ceccone ceccone closed this as completed May 31, 2021
@ceccone
Copy link
Contributor Author

ceccone commented May 31, 2021

Just saw that it was already mentioned before. Closing as a duplicate of #26630.

@snicoll
Copy link
Member

snicoll commented May 31, 2021

Duplicate of #26630

@snicoll snicoll marked this as a duplicate of #26630 May 31, 2021
@snicoll snicoll added the status: duplicate A duplicate of another issue label May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants