No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Jersey support for Prometheus Java Instrumentation library

This is Jersey exporter for Prometheus Java instrumentation library

This exporter can be used to collect metrics from Jersey framework (inside GlassFish/Payara server).

Usage example:

  new JerseyStatisticsCollector(monitoringStatistics).register();
Monitoring statistics object can be injected into JavaEE application like this:
  private MonitoringStatistics monitoringStatistics;
In order for exporter to work, statistics collection has to be enabled in the ResourceConfig subclass:
  properties.put(ServerProperties.MONITORING_STATISTICS_ENABLED, true);
Analogously in web.xml: