@Configuration @AutoConfigureAfter(value={MetricsAutoConfiguration.class,HibernateJpaAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnClass(value={javax.persistence.EntityManagerFactory.class,org.hibernate.SessionFactory.class,io.micrometer.core.instrument.MeterRegistry.class}) @ConditionalOnBean(value={javax.persistence.EntityManagerFactory.class,io.micrometer.core.instrument.MeterRegistry.class}) public class HibernateMetricsAutoConfiguration extends Object
Auto-configuration
for metrics on all available
Hibernate EntityManagerFactory
instances that have statistics enabled.Constructor and Description |
---|
HibernateMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
bindEntityManagerFactoriesToRegistry(Map<String,EntityManagerFactory> entityManagerFactories,
io.micrometer.core.instrument.MeterRegistry registry) |
@Autowired public void bindEntityManagerFactoriesToRegistry(Map<String,EntityManagerFactory> entityManagerFactories, io.micrometer.core.instrument.MeterRegistry registry)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.