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 |
|---|---|
IMetricsTracker |
create(String poolName,
PoolStats poolStats)
Create an instance of an IMetricsTracker.
|
public IMetricsTracker create(String poolName, PoolStats poolStats)
MetricsTrackerFactorycreate in interface MetricsTrackerFactorypoolName - the name of the poolpoolStats - a PoolStats instance to useCopyright © 2017 Zaxxer.com. All Rights Reserved.