-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
Expose Hibernate Statistics through Metrics endpoint #2157
Comments
How do you enable Hibernate Statistics in Spring-Boot? |
Set |
When hibernate is on the classpath and an `EntityManagerFactory` is configured then register a `HibernateMetrics` bean so that the statistics from hibernate get published to the metrics endpoint. The exposed statistics are the same as those that would be exposed using `Statistics.logSummary` from hibernate itself. Issue: spring-projects#2157
Defensivly catch the PersistenceException when unwrapping. Issue: spring-projects#2157
@wilkinsona @mdeinum I'm not sure if this would help, but I wrote a subclass of |
When hibernate is on the classpath and an `EntityManagerFactory` is configured then register a `HibernateMetrics` bean so that the statistics from hibernate get published to the metrics endpoint. The exposed statistics are the same as those that would be exposed using `Statistics.logSummary` from hibernate itself. Issue: spring-projects#2157
Defensivly catch the PersistenceException when unwrapping. Issue: spring-projects#2157
Formatting with tabs instead of spaces and update of copyright header. Issue: spring-projects#2157
Fix remaining Checkstyle issues. Issue: spring-projects#2157
Any news about this? Would appreciate to access hibernate statistics through actuator. |
Closing in favour of the PR #3596 |
When hibernate is on the classpath and an `EntityManagerFactory` is configured then register a `HibernateMetrics` bean so that the statistics from hibernate get published to the metrics endpoint. The exposed statistics are the same as those that would be exposed using `Statistics.logSummary` from hibernate itself. Issue: spring-projects#2157
Defensivly catch the PersistenceException when unwrapping. Issue: spring-projects#2157
Formatting with tabs instead of spaces and update of copyright header. Issue: spring-projects#2157
Fix remaining Checkstyle issues. Issue: spring-projects#2157
…ot into spring-projectsgh-2157 # Conflicts: # spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
When using Hibernate as the ORM provider it would be nice that, when statistics are enabled, those would be accessible through a metrics endpoint.
The text was updated successfully, but these errors were encountered: