public static void monitor(MeterRegistry registry, SessionFactory sessionFactory, String sessionFactoryName, Iterable<Tag> tags) {
        new HibernateMetrics(sessionFactory, sessionFactoryName, tags).bindTo(registry);
    }
public static void monitor ( MeterRegistry registry , SessionFactory sessionFactory , String sessionFactoryName , Iterable < Tag > tags ) { new HibernateMetrics ( sessionFactory , sessionFactoryName , tags ) . bindTo ( registry ) ; }
Create {@code HibernateMetrics} and bind to the specified meter registry.

@param registry meter registry to use
@param sessionFactory session factory to use
@param sessionFactoryName session factory name as a tag value
@param tags additional tags