Skip to content

VitaNuova/eclipselinkexporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EclipseLink support for Prometheus Java Instrumentation library

This is EclipseLink exporter for Prometheus Java instrumentation library. It follows the same pattern as the Hibernate exporter from the Prometheus Java Instrumentation library https://github.com/prometheus/client_java.

This exporter can be used to collect metrics from one or more EclipseLink Session instances.

Usage example for a single session:

 new EclipseLinkStatisticsCollector(session, "name").register();
 
Usage example for multiple sessions:
 new EclipseLinkStatisticsCollector()
     .add(session1, "name1")
     .add(session2, "name2")
     .register();
 
Session instance can be obtained from EntityManager instance like this:
 Session session = ((JpaEntityManager)entityManager.getDelegate()).getSession();
 

About

EclipseLink support for Prometheus Java Instrumentation library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages