Class PrometheusHistogramMetricsTrackerFactory

  • All Implemented Interfaces:
    MetricsTrackerFactory

    public class PrometheusHistogramMetricsTrackerFactory
    extends Object
    implements MetricsTrackerFactory
    
     HikariConfig config = new HikariConfig();
     config.setMetricsTrackerFactory(new PrometheusHistogramMetricsTrackerFactory());
     
    • Constructor Detail

      • PrometheusHistogramMetricsTrackerFactory

        public PrometheusHistogramMetricsTrackerFactory()
        Default Constructor. The Hikari metrics are registered to the default collector registry (CollectorRegistry.defaultRegistry).
      • PrometheusHistogramMetricsTrackerFactory

        public PrometheusHistogramMetricsTrackerFactory​(io.prometheus.client.CollectorRegistry collectorRegistry)
        Constructor that allows to pass in a CollectorRegistry to which the Hikari metrics are registered.
        Parameters:
        collectorRegistry - the collector registry to register the metrics to