public class PrometheusMetricsTrackerFactory extends Object implements MetricsTrackerFactory
HikariConfig config = new HikariConfig();
config.setMetricsTrackerFactory(new PrometheusMetricsTrackerFactory());
| Constructor and Description |
|---|
PrometheusMetricsTrackerFactory() |
| Modifier and Type | Method and Description |
|---|---|
MetricsTracker |
create(String poolName,
PoolStats poolStats)
Create an instance of a MetricsTracker.
|
public MetricsTracker create(String poolName, PoolStats poolStats)
MetricsTrackerFactorycreate in interface MetricsTrackerFactorypoolName - the name of the poolpoolStats - a PoolStats instance to useCopyright © 2016 Zaxxer.com. All Rights Reserved.